public void Execute(IStateBehaviour <IEnumerator> state) { _state = state; _disposables = Observable.FromCoroutine(x => _state.Execute()).Subscribe(); }
protected virtual void ExecuteState(IStateBehaviour stateType) { Debug.LogFormat("START State {0}", stateType); CurrentState = stateType; _stateExecutor.Execute(CurrentState.Execute()); }
public void Execute(IStateBehaviour <IEnumerator> state) { _state = state; _disposables = state.Execute().RunWithSubRoutines(_routineType); }