NextPart() public method

public NextPart ( ) : void
return void
Beispiel #1
0
 /** Declare that the AI has completely traversed the current part.
  * This will skip to the next part, or call OnTargetReached if this was the last part
  */
 void NextPart()
 {
     rp.NextPart();
     lastCorner = false;
     if (!rp.PartsLeft())
     {
         //End
         OnTargetReached();
     }
 }
 /// <summary>
 /// Declare that the AI has completely traversed the current part.
 /// This will skip to the next part, or call OnTargetReached if this was the last part
 /// </summary>
 protected void NextPart()
 {
     if (!richPath.CompletedAllParts)
     {
         if (!richPath.IsLastPart)
         {
             lastCorner = false;
         }
         richPath.NextPart();
         if (richPath.CompletedAllParts)
         {
             OnTargetReached();
         }
     }
 }