Пример #1
0
 private void OnDestroy()
 {
     if (ins == this)
     {
         ins = null;
     }
 }
Пример #2
0
 public static void Show()
 {
     if (ins == null)
     {
         ins = Core.GameObjectLib.Create <UCL_DebugInspector>("UCL_DebugInspector", null);
         DontDestroyOnLoad(ins.gameObject);
     }
     ins.ShowInspector();
 }