Added a few missing UI to help game modes feel more complete and fixed a few game mode bugs
This commit is contained in:
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user