예제 #1
0
 public bool Execute()
 {
     curAction = isFinished ? null : m_Actions[curStep];
     if (curAction != null)
     {
         if (!curAction.CheckPreconditions())
         {
             return(false);
         }
         curAction.Activate();
     }
     return(true);
 }