13 lines
309 B
C#
13 lines
309 B
C#
|
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|