//Ensures there is only ever one GLobal Object active at a time private void Awake() { if (Instance == null) { DontDestroyOnLoad(gameObject); Instance = this; } else if (Instance != this) { Destroy(gameObject); } print("Started"); if (GetComponentInChildren <StartMenuScript>()) { startMenuScript = GetComponentInChildren <StartMenuScript>(); startMenuScript.loadStart(); } SaveManager.saveManager(); // Start player at set health defaultPlayerHealth = 100.00f; // Set limit on dashes defaultPlayerDashLimit = 3; // Start player with set dashes playerDashCount = 3; }