Fixed bugs revolving around the pause menu, retry button and waypoint spawn counting
This commit is contained in:
@@ -250,16 +250,19 @@ public class PauseMenu : MonoBehaviour
|
||||
|
||||
if(FloorLevel.gameOver == true)
|
||||
{
|
||||
FloorLevel.gameOver = false;
|
||||
SceneManager.LoadScene("Floor Level", LoadSceneMode.Single);
|
||||
}
|
||||
|
||||
if(WaypointRace.gameOver == true)
|
||||
{
|
||||
WaypointRace.gameOver = false;
|
||||
SceneManager.LoadScene("Waypoint Race", LoadSceneMode.Single);
|
||||
}
|
||||
|
||||
if(InfinityRunner.gameOver == true)
|
||||
{
|
||||
InfinityRunner.gameOver = false;
|
||||
SceneManager.LoadScene("Infinity Runner", LoadSceneMode.Single);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,10 +59,12 @@ public class WaypointRace : MonoBehaviour
|
||||
waypointPlacement();
|
||||
script.lives = 3;
|
||||
level++;
|
||||
completionTime += 15*(size-1);
|
||||
if(level > 3)
|
||||
{
|
||||
size++;
|
||||
level = 1;
|
||||
script.lives = 4;
|
||||
script.respawn = true;
|
||||
script.respawnTime = Time.time + 0.25f;
|
||||
countdown = Time.time;
|
||||
@@ -184,6 +186,8 @@ public class WaypointRace : MonoBehaviour
|
||||
void waypointPlacement()
|
||||
{
|
||||
|
||||
script.lives = 3;
|
||||
|
||||
groundedScript.transform.position = new Vector3(
|
||||
Random.Range(-100*size, 100*size), Random.Range(2, 10), Random.Range(-100*size, 100*size));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user