Exemple #1
0
    bool CheckTeamEnterBattle(BattleTeam team, bool otherTeamInBattle = false)
    {
        bool enteredBattle = team.TryEnterBattle();

        if (enteredBattle)
        {
            team.PlayAnimation(Animations.FaceUp);
        }
        else
        {
            team.PlayAnimation(otherTeamInBattle ? Animations.WaitingForBattle : Animations.ShowTeam);
        }
        return(enteredBattle);
    }