public void TransitionToGameState(GameBaseState state) { _currentGameState?.Leave(this); _previousGameState = _currentGameState; _currentGameState = state; _currentGameState.Enter(this); }
public void TransitionToGameState(GameBaseState state) { _currentGameState?.Leave(this); _previousGameState = _currentGameState; _currentGameState = state; _currentGameState.Enter(this); }