public void TransitionToState(PlayerBaseState state) { _currentState = state; _currentState.Enterstate(this); }