private bool checkWinAndLose() { if (objective.isWinCondition(halfTurnsElapsed)) { advanceCampaign(); return(true); } else if (objective.isLoseCondition(halfTurnsElapsed)) { defeatImage.enabled = true; return(true); } else { return(false); } }
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); } }