public void EndGame() { started = false; timerText.gameObject.SetActive(false); endText.gameObject.SetActive(true); endText.text = "You wrangled for " + secondsWrangled + " seconds. Press space to play again"; HealthBar.instance.Show(false); meteorsManager.StopSpawnWaves(); dc.Clean(); shipObject.tc.Clean(); Invoke("DelayedEnd", 5f); }