예제 #1
0
 void Start()
 {
     _destination = Goals.Destination.Core;
     _task        = Goals.Task.Home;
     _status      = Goals.Status.Todo;
     _agent       = GetComponent <NavMeshAgent>();
     _onBus       = false;
     // FindDestinationPoint();
 }
예제 #2
0
 void OnTriggerStay(Collider c)
 {
     if (c.tag == "Downtown")
     {
         _destination = Goals.Destination.Downtown;
     }
     else if (c.tag == "Temple Heights")
     {
         _destination = Goals.Destination.Temple;
     }
     else if (c.tag == "Historic Core")
     {
         _destination = Goals.Destination.Core;
     }
 }