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