/// 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 { /// /// A base menu class that implements parameterless Show and Hide methods /// public abstract class SimpleMenu : Menu where T : SimpleMenu { public static void Show() { Open(); } public static void Hide() { Close(); } } }