private bool TestBattleOver() { if (playerCharacterBattle.IsDead()) { // Player dead, enemy wins //CodeMonkey.CMDebug.TextPopupMouse("Enemy Wins!"); BattleOverWindow.Show_Static("Enemy Wins!"); return(true); } if (enemyCharacterBattle.IsDead()) { // Enemy dead, player wins //CodeMonkey.CMDebug.TextPopupMouse("Player Wins!"); BattleOverWindow.Show_Static("Player Wins!"); return(true); } return(false); }
private bool TestBattleOver() { //TODO CHECK FOR ALL CHARACTERS //if() if (currentScene == SceneStatus.Battle) { if (playerCharacterBattle.Count == 0) { BattleOverWindow.Show_Static("Enemy Wins!"); return(true); } if (enemyCharacterBattle.Count == 0) { BattleOverWindow.Show_Static("Player Wins!"); return(true); } } return(false); }
private void Awake() { instance = this; Hide(); }