private void OnPauseButtonPressed() { main.PauseGame(); buttons.Visible = true; pauseButton.Visible = false; }