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

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

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