public void exitDebugState() { Debug.Text("Exiting Debug State"); lastWorldPos = new Point(Game.worldCenterX, Game.worldCenterY); Game.SetWindowCenter(windowPos.X, windowPos.Y); GameStateManager.man.CurrentState = previousState; previousState.enter(); }