Fixed bugs revolving around the pause menu, retry button and waypoint spawn counting

This commit is contained in:
Gregory Campbell
2020-02-04 22:33:20 -05:00
parent 2df87b44a5
commit 21e6914de2
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -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));