private void ChangeState(MainMenuState newState) { _currentState?.OnStateExit(); _currentState = newState; _currentState.OnStateEnter(this.gameObject.transform); }