Exemple #1
0
    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);
    }
Exemple #2
0
    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);
    }
Exemple #3
0
 private void Awake()
 {
     instance = this;
     Hide();
 }