void Start() { _destination = Goals.Destination.Core; _task = Goals.Task.Home; _status = Goals.Status.Todo; _agent = GetComponent <NavMeshAgent>(); _onBus = false; // FindDestinationPoint(); }
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; } }