Exemplo n.º 1
0
 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());
 }
Exemplo n.º 3
0
 public void Execute(IStateBehaviour <IEnumerator> state)
 {
     _state       = state;
     _disposables = state.Execute().RunWithSubRoutines(_routineType);
 }