Пример #1
0
 public void ChangeToState(FsmStateName StateName, CombatEvent Event)
 {
     CurrentState_?.OnExit();
     CurrentState_ = StateList_[StateName];
     CurrentState_?.OnEnter(Event);
 }
Пример #2
0
 protected BaseState(FsmStateName StateName, BaseFsm Fsm)
 {
     this.StateName = StateName;
     this.Fsm       = Fsm;
 }
Пример #3
0
 public bool IsFsmState(FsmStateName StateName)
 {
     return(Fsm_.GetStateName() == StateName);
 }