Esempio n. 1
0
    public virtual void RemoveActionFromLoopList(HeroActionEvent theAction)
    {
        theAction.ForceCompletion();
        characterActions.Remove(theAction);

        if (onListChange != null)
        {
            onListChange.Invoke();
        }
    }
Esempio n. 2
0
    public virtual void RemoveActionFromTemporaryList(HeroActionEvent theAction)
    {
        theAction.ForceCompletion();
        temporaryCharacterActions.Remove(theAction);

        if (onTemporaryListChange != null)
        {
            onTemporaryListChange();
        }
    }
Esempio n. 3
0
 protected virtual void ReadyForNextTemporaryAction()
 {
     temporaryCharacterActions.Remove(currentTemporaryAction);
     if (onTemporaryListChange != null)
     {
         onTemporaryListChange();
     }
     readyForNext = true;
     if (currentAction != null)
     {
         currentAction.ForceCompletion();
     }
 }