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:
Gregory Campbell
2020-01-10 00:26:44 -05:00
parent e21c46f941
commit e801bfe945
16 changed files with 814 additions and 71 deletions
+8
View File
@@ -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;
}
}