public void iSucceeded(ICommand command) { if (m_CurrentCommand.Next != null) { m_CommandNotifier.iSucceeded(m_CurrentCommand.Value); m_CurrentCommand = m_CurrentCommand.Next; m_CommandInvoker.iInvoke(m_CurrentCommand.Value, this); } else { m_State = State.Succeeded; m_CommandNotifier.iSucceeded(null); m_CommandValidator?.iSucceeded(command); } }
public void iSucceeded(ICommand command) { if (command != null) { m_RedirectionTarget.iSucceeded(command); } }
////////////////////////////////////////////////////////////////////////// public void iSucceeded(ICommand command) { if (m_Running == false) { return; } if (command != m_Current.Value) { return; } m_CommandListener.iSucceeded(m_Current.Value); implNextCommand(); }