Ejemplo n.º 1
0
    //////////////////////////////////////////////////////////////////////////

    //////////////////////////////////////////////////////////////////////////
    public void Start()
    {
        m_Current = m_CommandList.First;

        if (m_Current != null)
        {
            m_Current.Value.iStart(this);
        }
        else
        {
            m_CommandNotifier.iSucceeded(m_Current.Value);
        }
    }
Ejemplo n.º 2
0
 public void iSucceeded()
 {
     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();
     }
 }
Ejemplo n.º 3
0
 public void iSucceeded(ICommand command)
 {
     if (command != null)
     {
         m_RedirectionTarget.iSucceeded(command);
     }
 }