Gate prefab updates, net manager updates

-Game mountain added level
-added gate model
This commit is contained in:
Vincent Wheat
2022-02-07 14:34:54 -06:00
parent 1990592920
commit a09e513076
15 changed files with 7740 additions and 270 deletions

View File

@@ -8,7 +8,6 @@ public class SlowTerrain : MonoBehaviour
//Also maybe add an isGrounded check?
private void OnTriggerEnter(Collider other)
{
Debug.Log("Slower!");
if (other.gameObject.tag == "Player")
{
other.GetComponent<PlayerStats>().MaxVel = 10.0f; //if player enters trigger slow them down
@@ -20,7 +19,7 @@ public class SlowTerrain : MonoBehaviour
{
if (other.gameObject.tag == "Player")
{
other.GetComponent<PlayerStats>().MaxVel = 25.0f;//if player exits trigger return speed to default
other.GetComponent<PlayerStats>().MaxVel = 45.0f;//if player exits trigger return speed to default
}
}
}