Added a few missing UI to help game modes feel more complete and fixed a few game mode bugs

This commit is contained in:
Gregory Campbell
2020-01-19 20:59:20 -05:00
parent a466cf3ab1
commit 6faa075382
7 changed files with 937 additions and 67 deletions
+4
View File
@@ -16,6 +16,7 @@ public class PlayerController : MonoBehaviour
public bool finished = false;
public bool respawn = false;
public int lives = 3;
public static int shownLives = 3;
public float maxSpeed;
public float acceleration;
public float friction;
@@ -61,6 +62,8 @@ public class PlayerController : MonoBehaviour
maxSpeedStore = maxSpeed;
accelerationStore = acceleration;
shownLives = 3;
Cursor.visible = !Cursor.visible;
Cursor.lockState = CursorLockMode.Locked;
}
@@ -121,6 +124,7 @@ public class PlayerController : MonoBehaviour
respawn = true;
respawnTime = Time.time;
shownLives--;
if (SceneManager.GetActiveScene().name == "Hub World")
{