/// <summary> /// Constructor /// </summary> /// <param name="agent">The agent to be managed.</param> public NavPlanner(NavAgent agent) { this.agent = agent; // Note: The active planner is set during enter method. mMoveToCrowd = new MoveToCrowd(agent); mFollowGoal = new FollowGoalCrowd(agent); mLocalMove = new MoveToLocal(agent); mSimpleMove = new MoveToSimple(agent); mSuspendInCrowd = new SuspendInCrowd(agent); }