protected void InitializeState(BState <TEnum> state, TEnum[] allEnumValues) { foreach (TEnum e in allEnumValues) { if (state.Id.Equals(e)) { continue; } this.SetupActionForMethod(state.TransitionToNextStateIdKey(e)); } this.SetupActionForMethod(state.EnterKey()); this.SetupActionForMethod(state.TickKey()); this.SetupActionForMethod(state.FixedTickKey()); this.SetupActionForMethod(state.ExitKey()); }
protected virtual void FixedUpdate() { this.CallActionForMethod(_currentState.FixedTickKey()); }