private void ResetScene() { GameObject[] asteroids = GameObject.FindGameObjectsWithTag("Asteroid"); foreach (GameObject asteroid in asteroids) { Destroy(asteroid); } QuestionText.Clear(); spaceship.Reset(); shield.InitialiseShieldState(); timer.InitialiseTimer(); }
public IEnumerator Test_InitialiseShieldStateResetsCorrectly() { shieldStateHandler.AddCountWrong(); shieldStateHandler.AddCountWrong(); shieldStateHandler.AddCountWrong(); yield return(null); shieldStateHandler.InitialiseShieldState(); yield return(null); TestInitialised(); yield return(null); }