com.unity.uiextensions.nosa.../Examples/MenuExample/Scripts/Menus/PauseMenu.cs

13 lines
309 B
C#
Raw Normal View History

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