public GetNewWaypoint(Transform[] waypoints, GameObject agent) { this.waypoints = waypoints; this.agent = agent.GetComponent <PatrolALT>(); }
public MoveTowardsWaypoint(Transform target, GameObject agent, float speed) { this.target = target; this.agent = agent.GetComponent <PatrolALT>(); this.speed = speed; }
public WaypointReached(Transform target, GameObject agent) { this.target = target; this.agent = agent.GetComponent <PatrolALT>(); }