22 lines
430 B
C#
22 lines
430 B
C#
using UnityEngine.UI.Extensions.Examples;
|
|
|
|
namespace UnityEngine.UI.Extensions.Examples
|
|
{
|
|
public class MainMenu : SimpleMenu<MainMenu>
|
|
{
|
|
public void OnPlayPressed()
|
|
{
|
|
GameMenu.Show();
|
|
}
|
|
|
|
public void OnOptionsPressed()
|
|
{
|
|
OptionsMenu.Show();
|
|
}
|
|
|
|
public override void OnBackPressed()
|
|
{
|
|
Application.Quit();
|
|
}
|
|
}
|
|
} |