Esempio n. 1
0
 private void ChangeState(TouristState state)
 {
     Debug.Log("ChangeState " + state.ToString());
     info.state = state;
     if (state.Equals(TouristState.Dep))
     {
         ExitLoungerBad();
     }
     animator.SetTrigger(state.ToString());
 }
Esempio n. 2
0
 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;
 }