示例#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);
     }
 }
示例#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);
     }
 }