示例#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);
        }
示例#2
0
文件: NavPlanner.cs 项目: tsuixl/act
        /// <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);
        }