コード例 #1
0
        private void MoveToNextUpdateFunc()
        {
            ++mCurrentIndex;
            if (mCurrentIndex >= mNodeList.Count)
            {
                mTotalSchedule = 1.0f;
                mCurrentNode   = null;

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

                if (mCurrentIndex == 0)
                {
                    OnExecuteContainerBeginEvent.InvokeGracefully();
                }

                OnExecuteTipsEvent.InvokeGracefully(mCurrentNode.Tips);
            }
        }
コード例 #2
0
 public void Append(ProcessNode node)
 {
     if (null == mSequenceNode)
     {
         mSequenceNode = new SequenceNode();
     }
     mSequenceNode.Append(node);
 }
コード例 #3
0
        public void Append(ProcessNode item)
        {
            if (mNodeList == null)
            {
                mNodeList     = new List <ProcessNode>();
                mCurrentIndex = -1;
            }

            mNodeList.Add(item);
        }