示例#1
0
 //Get the Waypoint
 Vector3 GetWaypoint(bool isRandom)
 {
     //if isRandom is true then get a random position location
     if (isRandom)
     {
         return(m_AIManager.RandomPosition());
     }
     else
     {
         //othewise get a random waypoint from the list of waypoint gameObjects
         return(m_AIManager.RandomWaypoint());
     }
 }
示例#2
0
 Vector3 GetWayPoint(bool isRandom)
 {
     //if true get random position
     if (isRandom)
     {
         return(m_AIManager.RandomPosition());
     }
     //else get from list of waypoint objects
     else
     {
         return(m_AIManager.RandomWaypoint());
     }
 }