public virtual void OpenPreviousWindow() { if (previousMode != null) { previousMode.OpenWindow(); } }
public static void ShowGUI <T>(UImode ui, string name) where T : UImode { if (ui == null) { SceneManager.instance.LoadSceneGUI("GUI/" + name); Utility.StartSceneCoroutine <float, Action>(Utility.instance.Wait, 0.01f, () => { ((UImode)typeof(T).GetField("Instance").GetValue(null)).OpenWindow(); }); } else { ui.OpenWindow(); } ResetAllCacheDepth(); }