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)
|
if(FloorLevel.gameOver == true)
|
||||||
{
|
{
|
||||||
|
FloorLevel.gameOver = false;
|
||||||
SceneManager.LoadScene("Floor Level", LoadSceneMode.Single);
|
SceneManager.LoadScene("Floor Level", LoadSceneMode.Single);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(WaypointRace.gameOver == true)
|
if(WaypointRace.gameOver == true)
|
||||||
{
|
{
|
||||||
|
WaypointRace.gameOver = false;
|
||||||
SceneManager.LoadScene("Waypoint Race", LoadSceneMode.Single);
|
SceneManager.LoadScene("Waypoint Race", LoadSceneMode.Single);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(InfinityRunner.gameOver == true)
|
if(InfinityRunner.gameOver == true)
|
||||||
{
|
{
|
||||||
|
InfinityRunner.gameOver = false;
|
||||||
SceneManager.LoadScene("Infinity Runner", LoadSceneMode.Single);
|
SceneManager.LoadScene("Infinity Runner", LoadSceneMode.Single);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -59,10 +59,12 @@ public class WaypointRace : MonoBehaviour
|
|||||||
waypointPlacement();
|
waypointPlacement();
|
||||||
script.lives = 3;
|
script.lives = 3;
|
||||||
level++;
|
level++;
|
||||||
|
completionTime += 15*(size-1);
|
||||||
if(level > 3)
|
if(level > 3)
|
||||||
{
|
{
|
||||||
size++;
|
size++;
|
||||||
level = 1;
|
level = 1;
|
||||||
|
script.lives = 4;
|
||||||
script.respawn = true;
|
script.respawn = true;
|
||||||
script.respawnTime = Time.time + 0.25f;
|
script.respawnTime = Time.time + 0.25f;
|
||||||
countdown = Time.time;
|
countdown = Time.time;
|
||||||
@@ -184,6 +186,8 @@ public class WaypointRace : MonoBehaviour
|
|||||||
void waypointPlacement()
|
void waypointPlacement()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
script.lives = 3;
|
||||||
|
|
||||||
groundedScript.transform.position = new Vector3(
|
groundedScript.transform.position = new Vector3(
|
||||||
Random.Range(-100*size, 100*size), Random.Range(2, 10), Random.Range(-100*size, 100*size));
|
Random.Range(-100*size, 100*size), Random.Range(2, 10), Random.Range(-100*size, 100*size));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user