com.unity.uiextensions/Examples/MenuExample/Scripts/Menus/MainMenu.cs

20 lines
387 B
C#
Raw Normal View History

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();
}
}
}