Exemplo n.º 1
0
    public CombatState()
    {
        GameObject gameControllerObject = GameObject.FindWithTag("GameController");

        if (gameControllerObject != null)
        {
            gameController = gameControllerObject.GetComponent <GameController>();
        }

        bsm.Add(BattleState.Turn, new TurnState(bsm, actors));
        bsm.Add(BattleState.Execute, new ExecuteState(bsm));
        bsm.Add(BattleState.Loot, new LootState(bsm));
    }