Assets/Main Menu Gradient.asset

This commit is contained in:
Gregory Campbell
2020-01-18 23:10:16 -05:00
parent 46fd1ed4f4
commit a466cf3ab1
11 changed files with 1391 additions and 88 deletions
+9 -3
View File
@@ -8,8 +8,10 @@ using UnityEngine.SceneManagement;
public class FloorLevel : MonoBehaviour
{
public int escalation = 1;
public int level = 1;
public static bool gameOver = false;
public static int escalation = 1;
public static int level = 1;
public static float fullTime;
public GameObject player;
public PlayerController script;
public GameObject[] obstacleList;
@@ -26,7 +28,8 @@ public class FloorLevel : MonoBehaviour
// Start is called before the first frame update
void Start()
{
fullTime = Time.time;
gameOver = false;
script = player.GetComponent<PlayerController>();
escalation = 1;
script.lives = 3;
@@ -61,6 +64,9 @@ public class FloorLevel : MonoBehaviour
{
script.lives = -1;
PauseMenu.GameIsOver = true;
fullTime = Time.time - fullTime;
gameOver = true;
SceneManager.LoadScene("Hub World", LoadSceneMode.Single);
}