Exemplo n.º 1
0
        protected override object ExecNode(int callerID, params object[] objects)
        {
            bool condition = m_Condition.Value;

            while (condition)
            {
                m_ExecOC_LoopBody.Play();
            }

            return(m_ExecOC_Completed.Play());
        }
Exemplo n.º 2
0
 protected override object ExecNode(int callerID, params object[] objects)
 {
     if (m_Method == null)
     {
         return(null);
     }
     if (m_Method.GetParameters().Length == 0)
     {
         object res = m_Method.Invoke(m_TargetIC.TargetObject, null);
         m_ObjectOC.Object = res;
     }
     return(m_ExecOC.Play());
 }
Exemplo n.º 3
0
        protected override object ExecNode(int callerID, params object[] objects)
        {
            bool condition = m_Condition.Value;

            if (condition)
            {
                return(m_ExecOC_True.Play());
            }
            else
            {
                return(m_ExecOC_False.Play());
            }
        }
Exemplo n.º 4
0
        protected override object ExecNode(int callerID, params object[] objects)
        {
            Array array = (Array)m_Array.Object;

            for (int i = 0; i < array.Length; ++i)
            {
                m_ArrayElement.Object = array.GetValue(i);
                m_ArrayIndex.Object   = i;

                m_ExecOC_LoopBody.Play();
            }
            m_ExecOC_Completed.Play();

            return(null);
        }
Exemplo n.º 5
0
        protected override object ExecNode(int callerID, params object[] objects)
        {
            int frist = m_FristIndex.Value;
            int last  = m_LastIndex.Value;

            if (m_ExecIC_Break.ID != callerID)
            {
                for (; frist < last; ++frist)
                {
                    m_Index.Object = frist;

                    m_ExecOC_LoopBody.Play();
                }
            }
            return(m_ExecOC_Completed.Play());
        }
Exemplo n.º 6
0
        protected override object ExecNode(int callerID, params object[] inParams)
        {
            //Fill input params into out component
            if (inParams != null)
            {
                Assert.IsTrue(inParams.Length <= m_OutputParams.Count);
                for (int i = 0; i < inParams.Length; ++i)
                {
                    m_OutputParams[i].Object = inParams[i];
                }
            }

            object res = m_ExecOC.Play(callerID, null);

            ClearExecLocalState();
            return(res);
        }
Exemplo n.º 7
0
        protected override object ExecNode(int callerID, params object[] objects)
        {
            object res;

            m_IsA_OC.Object = m_IsA;
            if (m_IsA)
            {
                res = m_ExecOC_A.Play();
            }
            else
            {
                res = m_ExecOC_B.Play();
            }

            m_IsA = !m_IsA;

            return(res);
        }
Exemplo n.º 8
0
 protected override object ExecNode(int callerID, params object[] objects)
 {
     return(m_ExecOC.Play());
 }