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

22 lines
430 B
C#
Raw Normal View History

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