Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        /// <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);
        }