Пример #1
0
 public virtual void OpenPreviousWindow()
 {
     if (previousMode != null)
     {
         previousMode.OpenWindow();
     }
 }
Пример #2
0
 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();
 }