예제 #1
0
    public bool Update()
    {
        if (CheckWinner() != TEAMS.NONE)
        {
            // Debug.Log("WINNER: " + (CheckWinner() == TEAMS.TEAM1 ? "Team 1" : "Team2") + "!");
            return(true);
        }


        Battler nextActor = NextActor();

        if (nextActor == null)
        {
            Tick();
        }
        else
        {
            BattlerAction action = nextActor.Act();
            ExecuteAction(action);
        }
        return(false);
    }