private void ProcessNextAction() { Action action; if (currentChain.GetNextAction(out action)) { view.ProcessAction(action); } else { ChainComplete(); } }
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(); } }