Moved the procedural generation over into a new scene in order to develop the first game mode - spawning into the next 'floor' is currently buggy
This commit is contained in:
@@ -12,6 +12,7 @@ public class PlayerController : MonoBehaviour
|
||||
CharacterController characterController;
|
||||
CapsuleCollider capsule;
|
||||
|
||||
public bool finished = false;
|
||||
public float maxSpeed;
|
||||
public float acceleration;
|
||||
public float friction;
|
||||
@@ -64,6 +65,13 @@ public class PlayerController : MonoBehaviour
|
||||
wallRunning = true;
|
||||
wall++;
|
||||
}
|
||||
|
||||
if(hit.gameObject.tag == "Finish")
|
||||
{
|
||||
finished = true;
|
||||
velocity = new Vector3(0,0,0);
|
||||
maxSpeed = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user