Example #1
0
    public void SetInitialWp(Waypoint wp, Vector3 forward, bool doRandomMotion)
    {
        currentWaypoint   = wp;
        transform.forward = forward;

        if (doRandomMotion)
        {
            NavigateRandomly();
        }
        controller = GetComponent <WaypointNavigatorController>();
        controller.SetDestination(wp.GetPosition());
    }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     controller = GetComponent <WaypointNavigatorController>();
 }