Beispiel #1
0
 void DisplayError()
 {
     if (lives == null)
     {
         ProjectMethods.NoLivesComponentMsg();
         ProjectMethods.QuitGame();
     }
     if (gameController == null)
     {
         ProjectMethods.NoGameControllerComponentMsg();
         ProjectMethods.QuitGame();
     }
 }
Beispiel #2
0
 void DisplayError()
 {
     if (player == null)
     {
         ProjectMethods.NoPlayerObjectMsg();
         ProjectMethods.QuitGame();
     }
     else if (playerLives == null)
     {
         ProjectMethods.NoLivesComponentMsg();
         ProjectMethods.QuitGame();
     }
     else if (aController == null)
     {
         ProjectMethods.NoAlienControllerComponentMsg();
         ProjectMethods.QuitGame();
     }
 }