示例#1
0
 /// <summary>
 /// Set the AI into an Idle state
 /// </summary>
 /// <param name="currentPosition"></param>
 /// <param name="radius"></param>
 public void Idle()
 {
     // set pathing to random
     if (GetStatus() == NavMeshPathStatus.PathComplete)
     {
         Agent.PathRandom(transform.position, SearchRadius);
     }
 }