23 protected static void Open()
25 GameObject clonedGameObject =
null;
42 Debug.LogErrorFormat(
"Trying to close menu {0} but Instance is null", typeof(T));
55 public abstract class Menu : MonoBehaviour
57 [Tooltip(
"Destroy the Game Object when menu is closed (reduces memory usage)")]
60 [Tooltip(
"Disable menus that are under this one in the stack")]
Credit Erdener Gonenc - @PixelEnvision.