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);
        }
Esempio n. 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="agent">The agent to be handled by the mover.</param>
 public SimpleMover(NavAgent agent)
 {
     this.agent = agent;
 }
Esempio n. 4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="agent">The agent to be managed.</param>
 public MoveToLocal(NavAgent agent)
 {
     this.agent = agent;
 }
Esempio n. 5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="agent">The agent to be managed.</param>
 public MoveToCrowd(NavAgent agent)
 {
     this.agent = agent;
 }
Esempio n. 6
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="agent">The agent to manage.</param>
 public FollowGoalCrowd(NavAgent agent)
 {
     this.agent = agent;
 }
Esempio n. 7
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="agent">The agent to be managed.</param>
 public SuspendInCrowd(NavAgent agent)
 {
     this.agent = agent;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="agent">The agent to manage.</param>
 public FollowGoalCrowd(NavAgent agent)
 {
     this.agent = agent;
 }
Esempio n. 9
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="agent">The agent to be managed.</param>
 public SuspendInCrowd(NavAgent agent)
 {
     this.agent = agent;
 }
Esempio n. 10
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="agent">The agent to be managed.</param>
 public MoveToCrowd(NavAgent agent)
 {
     this.agent = agent;
 }
Esempio n. 11
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="agent">The navigation agent to be managed by the controller.</param>
 public NavController(NavAgent agent)
 {
     this.agent = agent;
 }
Esempio n. 12
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="agent">The agent to be managed.</param>
 public MoveToLocal(NavAgent agent)
 {
     this.agent = agent;
 }
Esempio n. 13
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="agent">The agent to be managed.</param>
 public MoveToSimple(NavAgent agent)
 {
     this.agent = agent;
 }