private void PrepareState(StateBase state) { SceneLoader.LoadScene(state.SceneName, state.OnActivate); }
public void PopState() { _currentState.OnDeactivate(); _currentState = _states.Pop(); PrepareState(_currentState); }