Esempio n. 1
0
 void CrashedState()
 {
     lives.Decrease(1);
     display.Crashed(_state.playerPos);
     sound.Crashed();
     //kenemies.Reset(); //TEST QUIZAS NO SE DEBA RESETEAR
     if (lives.Left())
     {
         SetState("playing");
     }
     else
     {
         bat.GameOver();
         display.GameOver();
         sound.GameOver();
         timeToMainMenu = CurrentTime() + gameOverWait;
         SetState("gameOver");
     }
 }