HeavenStudioPlus/Assets/Plugins/com.unity.uiextensions/Runtime/Scripts/MenuSystem/SimpleMenu.cs

22 lines
589 B
C#
Raw Normal View History

2022-01-06 00:11:33 +00: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
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();
}
}
}