private void ChangeState(TouristState state) { Debug.Log("ChangeState " + state.ToString()); info.state = state; if (state.Equals(TouristState.Dep)) { ExitLoungerBad(); } animator.SetTrigger(state.ToString()); }
public Tourist(TourisType type, string _id, float _speed, PatternRoute _pattern, RestPlaceController _restPlace, int _perfectReward) { id = _id; speed = _speed; pattern = _pattern; state = TouristState.None; routeState = TouristRouteState.None; stunned = false; restPlace = _restPlace; perfectReward = _perfectReward; }