Fix for web version
This commit is contained in:
parent
c09508323e
commit
dd925c3796
@ -5565,7 +5565,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 7094923891560833916, guid: e4d82994b58b7304b91c915c597b71f8,
|
- target: {fileID: 7094923891560833916, guid: e4d82994b58b7304b91c915c597b71f8,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: dashPower
|
propertyPath: dashPower
|
||||||
value: 30
|
value: 15
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 7094923891560833916, guid: e4d82994b58b7304b91c915c597b71f8,
|
- target: {fileID: 7094923891560833916, guid: e4d82994b58b7304b91c915c597b71f8,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
@ -3127,7 +3127,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 7094923891560833916, guid: e4d82994b58b7304b91c915c597b71f8,
|
- target: {fileID: 7094923891560833916, guid: e4d82994b58b7304b91c915c597b71f8,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: dashPower
|
propertyPath: dashPower
|
||||||
value: 30
|
value: 15
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 7094923891560833916, guid: e4d82994b58b7304b91c915c597b71f8,
|
- target: {fileID: 7094923891560833916, guid: e4d82994b58b7304b91c915c597b71f8,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
@ -110,7 +110,7 @@ public class ObjectManager : MonoBehaviour
|
|||||||
playerManager = other.gameObject.GetComponent<PlayerManager>();
|
playerManager = other.gameObject.GetComponent<PlayerManager>();
|
||||||
meshRenderer.materials[0].EnableKeyword("_EMISSION");
|
meshRenderer.materials[0].EnableKeyword("_EMISSION");
|
||||||
meshRenderer.materials[0].SetColor("_EmissionColor", new Color(0.2735849f, 0.2018939f, 0.09162514f) * 0.8f);
|
meshRenderer.materials[0].SetColor("_EmissionColor", new Color(0.2735849f, 0.2018939f, 0.09162514f) * 0.8f);
|
||||||
meshRenderer.materials[1].SetFloat("_Outline", 2.5f);
|
meshRenderer.materials[1].SetFloat("_Outline", 0.25f);
|
||||||
interact = true;
|
interact = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ public class ObjectManager : MonoBehaviour
|
|||||||
playerManager = collision.gameObject.GetComponent<PlayerManager>();
|
playerManager = collision.gameObject.GetComponent<PlayerManager>();
|
||||||
if (playerManager.activeAbility.Count > 0 && playerManager.activeAbility[0] == 2)
|
if (playerManager.activeAbility.Count > 0 && playerManager.activeAbility[0] == 2)
|
||||||
{
|
{
|
||||||
meshRenderer.materials[1].SetFloat("_Outline", 0.1f);
|
meshRenderer.materials[1].SetFloat("_Outline", 0.01f);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -48,11 +48,11 @@ public class PowerCubeManager : MonoBehaviour
|
|||||||
{
|
{
|
||||||
meshRenderer.materials[0].EnableKeyword("_EMISSION");
|
meshRenderer.materials[0].EnableKeyword("_EMISSION");
|
||||||
meshRenderer.materials[0].SetColor("_EmissionColor", new Color(0.2735849f, 0.2018939f, 0.09162514f) * 0.8f);
|
meshRenderer.materials[0].SetColor("_EmissionColor", new Color(0.2735849f, 0.2018939f, 0.09162514f) * 0.8f);
|
||||||
meshRenderer.materials[1].SetFloat("_Outline", 0.4f);
|
meshRenderer.materials[1].SetFloat("_Outline", 0.04f);
|
||||||
}
|
}
|
||||||
else if (powerType == PowerType.DubleJump || powerType == PowerType.PushPull || powerType == PowerType.Dash || powerType == PowerType.Ladder)
|
else if (powerType == PowerType.DubleJump || powerType == PowerType.PushPull || powerType == PowerType.Dash || powerType == PowerType.Ladder)
|
||||||
{
|
{
|
||||||
meshRenderer.materials[1].SetFloat("_Outline", 6f);
|
meshRenderer.materials[1].SetFloat("_Outline",0.6f);
|
||||||
meshRenderer.materials[0].EnableKeyword("_EMISSION");
|
meshRenderer.materials[0].EnableKeyword("_EMISSION");
|
||||||
meshRenderer.materials[0].SetColor("_EmissionColor", new Color(0.2735849f, 0.2018939f, 0.09162514f) * 0.8f);
|
meshRenderer.materials[0].SetColor("_EmissionColor", new Color(0.2735849f, 0.2018939f, 0.09162514f) * 0.8f);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user