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