コード例 #1
0
        public void Append(ExecuteNode item)
        {
            if (mNodeList == null)
            {
                mNodeList     = new List <ExecuteNode>();
                mCurrentIndex = -1;
            }

            mNodeList.Add(item);
        }
コード例 #2
0
        public void Append(ExecuteNode node)
        {
            if (node == null)
            {
                return;
            }

            if (m_ExecuteContainer == null)
            {
                m_ExecuteContainer = new ExecuteNodeContainer();
            }
            m_ExecuteContainer.Append(node);
        }
コード例 #3
0
        private void MoveToNextUpdateFunc()
        {
            if (mCurrentNode != null)
            {
                mCurrentNode.OnEnd();
            }

            ++mCurrentIndex;
            if (mCurrentIndex >= mNodeList.Count)
            {
                mTotalSchedule = 1.0f;
                mCurrentNode   = null;

                if (OnExecuteContainerEndEvent != null)
                {
                    OnExecuteContainerEndEvent();

                    OnExecuteContainerEndEvent = null;
                }
            }
            else
            {
                mCurrentNode = mNodeList[mCurrentIndex];
                mCurrentNode.OnBegin();

                if (mCurrentIndex == 0)
                {
                    if (OnExecuteContainerBeginEvent != null)
                    {
                        OnExecuteContainerBeginEvent();
                    }
                }

                if (OnExecuteTipsEvent != null)
                {
                    OnExecuteTipsEvent(mCurrentNode.Tips);
                }
            }
        }