mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
22 lines
No EOL
589 B
C#
22 lines
No EOL
589 B
C#
/// 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();
|
|
}
|
|
}
|
|
} |