public void OnAction(GenericBattleAction action, Actor target1, Actor target2)
    {
        action.Action(target1, target2);

        DisplayMessage(action.ToString());
        actionsGroup.SetActive(false);
        UpdatePlayerStats();
        StartCoroutine(NextAction());
        print("bye");
    }
Пример #2
0
    //looping actions
    public void OnAction(GenericBattleAction action, Actor target1, Actor traget2)
    {
        action.Action(target1, traget2);//player atk monster

        DisplayMessage(action.ToString());
        actionsGroup.SetActive(false);

        UpdatePlayerStats();
        UpdateMonsterLabel();

        StartCoroutine(NextAction());
    }