PartsLeft() public method

public PartsLeft ( ) : bool
return bool
Example #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();
     }
 }