2017-08-05 19:57:07 +08:00
|
|
|
|
namespace UnityEngine.UI.Extensions.Examples
|
2017-08-03 00:50:22 +08:00
|
|
|
|
{
|
|
|
|
|
public class MainMenu : SimpleMenu<MainMenu>
|
|
|
|
|
{
|
|
|
|
|
public void OnPlayPressed()
|
|
|
|
|
{
|
|
|
|
|
GameMenu.Show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnOptionsPressed()
|
|
|
|
|
{
|
|
|
|
|
OptionsMenu.Show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void OnBackPressed()
|
|
|
|
|
{
|
|
|
|
|
Application.Quit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|