mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-09 02:45:17 -05:00
Gate prefab updates, net manager updates
-Game mountain added level -added gate model
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user