Exemplo n.º 1
0
    private void ProcessNextAction()
    {
        Action action;

        if (currentChain.GetNextAction(out action))
        {
            view.ProcessAction(action);
        }
        else
        {
            ChainComplete();
        }
    }
Exemplo n.º 2
0
 public void ExecuteActionChain(ActionChain actionChain, System.Action callback)
 {
     if (actionChain.skipView)
     {
         Action action;
         while (actionChain.GetNextAction(out action))
         {
             action.ExecuteBehaviours();
         }
     }
     else
     {
         this.callback = callback;
         currentChain  = actionChain;
         ProcessNextAction();
     }
 }