Exemplo n.º 1
0
 protected override void OnResetState()
 {
     if (null != mNode)
     {
         mNode.ResetState();
     }
     mCurLoopIndex = 0;
     Finished      = false;
 }
Exemplo n.º 2
0
        public static IEnumerator Execute(this IExecuteNode selfNode)
        {
            if (selfNode.Finished)
            {
                selfNode.ResetState();
            }

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