com.unity.uiextensions.nosa.../Scripts/MenuSystem/SimpleMenu.cs

22 lines
664 B
C#
Raw Normal View History

/// Credit BinaryX
/// Sourced from - http://forum.unity3d.com/threads/scripts-useful-4-6-scripts-collection.264161/page-2#post-1945602
/// Updated by ddreaper - removed dependency on a custom ScrollRect script. Now implements drag interfaces and standard Scroll Rect.
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();
}
}
}