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

            shieldStateHandler.InitialiseShieldState();
            yield return(null);

            TestInitialised();
            yield return(null);
        }