Reverted back to using time as a secondary score for infinity runner as well as fixing a bug that would send you to infinity runner on retry

This commit is contained in:
Gregory Campbell
2020-02-08 20:06:38 -05:00
parent 374fcf2334
commit d2a08dea19
3 changed files with 25 additions and 25 deletions
+3 -2
View File
@@ -12,7 +12,7 @@ public class InfinityRunner : MonoBehaviour
public static int escalation = 1;
public static int level = 1;
public static float fullTime;
public static float distance;
public float distance;
public GameObject player;
public PlayerController script;
public GameObject[] obstacleList;
@@ -35,7 +35,8 @@ public class InfinityRunner : MonoBehaviour
// Start is called before the first frame update
void Start()
{
fullTime = Time.time;
fullTime = Time.time;
spawnTime = Time.time;
gameOver = false;
script = player.GetComponent<PlayerController>();