示例#1
0
 protected override void OnReset()
 {
     if (null != mNode)
     {
         mNode.Reset();
     }
     mCurRepeatCount = 0;
     Completed       = false;
 }
示例#2
0
 protected override void OnReset()
 {
     if (null != _executeNode)
     {
         _executeNode.Reset();
     }
     _curRepeatCount = 0;
     _completed      = false;
 }
示例#3
0
        public static IEnumerator Execute(this IExecuteNode selfNode)
        {
            if (selfNode.Finished)
            {
                selfNode.Reset();
            }

            while (!selfNode.Execute(Time.deltaTime))
            {
                yield return(null);
            }
        }