Exemplo n.º 1
0
 private bool checkWinAndLose()
 {
     if (objective.isWinCondition(halfTurnsElapsed))
     {
         advanceCampaign();
         return(true);
     }
     else if (objective.isLoseCondition(halfTurnsElapsed))
     {
         defeatImage.enabled = true;
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 private bool checkWinAndLose()
 {
     if (objective.isWinCondition(halfTurnsElapsed) || Input.GetKey(KeyCode.P))
     {
         advanceCampaign();
         return(true);
     }
     else if (objective.isLoseCondition(halfTurnsElapsed))
     {
         restartLevelDefeat();
         return(true);
     }
     else
     {
         return(false);
     }
 }