namespace UnityEngine.UI.Extensions.Examples { public class PauseMenu : SimpleMenu { public void OnQuitPressed() { Hide(); Destroy(this.gameObject); // This menu does not automatically destroy itself GameMenu.Hide(); } } }