public override void OnInspectorGUI() { DrawDefaultInspector(); CCGui menu = (CCGui)target; if (GUILayout.Button("FadeOut")) { menu.FadeGUI(true); } if (GUILayout.Button("FadeIn")) { menu.FadeGUI(false); } }
public static void FadeCCGUI(bool fade) { instance.FadeGUI(fade); }