Ejemplo n.º 1
0
        public override BTNodeState Process(T obj)
        {
            bool flag = mTimerTask.Process(obj);

            if (flag)
            {
                return(BTNodeState.Success);
            }
            return(BTNodeState.Failure);
        }
Ejemplo n.º 2
0
        public override BTNodeState Process(T obj)
        {
            bool flag = mTimerTask.Process(obj);

            if (flag)
            {
                mNodeState = mChild.Process(obj);
            }
            return(mNodeState);
        }
Ejemplo n.º 3
0
 public override BTNodeState Process(T obj)
 {
     mNodeState = mChild.Process(obj);
     if (mNodeState == BTNodeState.Running)
     {
         bool flag = mTimerTask.Process(obj);
         if (flag)
         {
             mNodeState = BTNodeState.Failure;
         }
     }
     else
     {
         mTimerTask.Stop();
     }
     return(mNodeState);
 }