public void Stop() { beliefControler.StopSpeech(); while (_listeners.Count > 0) { _listeners.Pop().StopRevSpeech(); } if (_speechArea != null) { _speechArea.Unoccupy(); _speechArea = null; } }
public void Start() { _speechArea = CityInfo.Instance.FindClosetSpeechArea(agent.transform); if (_speechArea != null) { _state = State.WalkingToSpeechArea; _speechArea.Intrest(); agent.SetDestination(_speechArea.speakingArea.position); } else { _state = State.None; } }