mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 10:57:38 +02:00
Editor stuff
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
/// 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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user