Added final game mode - infinity runner
This commit is contained in:
@@ -41,6 +41,12 @@ public class PauseMenu : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
if(SceneManager.GetActiveScene().name == "Infinity Runner")
|
||||
{
|
||||
ScoreText.text = "LEVEL: " + InfinityRunner.escalation + "-" + InfinityRunner.level;
|
||||
LivesText.text = "LIVES: " + PlayerController.shownLives;
|
||||
}
|
||||
|
||||
if(Input.GetButtonDown("Pause"))
|
||||
{
|
||||
if(GameIsPaused)
|
||||
@@ -113,6 +119,12 @@ public class PauseMenu : MonoBehaviour
|
||||
TimeText.text = "TIME: " + Mathf.Round(WaypointRace.fullTime);
|
||||
}
|
||||
|
||||
if(InfinityRunner.gameOver == true)
|
||||
{
|
||||
ScoreText.text = "LEVEL: " + InfinityRunner.escalation + "-" + InfinityRunner.level;
|
||||
TimeText.text = "TIME: " + Mathf.Round(InfinityRunner.fullTime);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void LoadHubWorld()
|
||||
@@ -150,6 +162,11 @@ public class PauseMenu : MonoBehaviour
|
||||
SceneManager.LoadScene("Waypoint Race", LoadSceneMode.Single);
|
||||
}
|
||||
|
||||
if(InfinityRunner.gameOver == true)
|
||||
{
|
||||
SceneManager.LoadScene("Infinity Runner", LoadSceneMode.Single);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void Quit()
|
||||
|
||||
Reference in New Issue
Block a user