2017-08-05 19:57:07 +08:00
|
|
|
|
/// Credit Adam Kapos (Nezz) - http://www.songarc.net
|
|
|
|
|
/// Sourced from - https://github.com/YousicianGit/UnityMenuSystem
|
|
|
|
|
/// Updated by SimonDarksideJ - Refactored to be a more generic component
|
2017-08-03 00:50:22 +08:00
|
|
|
|
|
|
|
|
|
namespace UnityEngine.UI.Extensions
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A base menu class that implements parameterless Show and Hide methods
|
|
|
|
|
/// </summary>
|
|
|
|
|
public abstract class SimpleMenu<T> : Menu<T> where T : SimpleMenu<T>
|
|
|
|
|
{
|
|
|
|
|
public static void Show()
|
|
|
|
|
{
|
|
|
|
|
Open();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void Hide()
|
|
|
|
|
{
|
|
|
|
|
Close();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|