예제 #1
0
 private void CheckGameOver()
 {
     if (gameOver.CheckCondition())
     {
         time.Pause();
         if (player.resources.SecondChances > 0)
         {
             player.ApplySecondChance();
             var messageBox = buttons.messageBox;
             messageBox.Show("Second Chance used. You are saved!", Resources.Load <Sprite>("Icons/2ndChance")); return;
         }
         else
         {
             time.Pause();
             buttons.market.SetPanel();
             gameOverHelp.StartTutorial();
         }
     }
 }