private void OnDestroy() { if (ins == this) { ins = null; } }
public static void Show() { if (ins == null) { ins = Core.GameObjectLib.Create <UCL_DebugInspector>("UCL_DebugInspector", null); DontDestroyOnLoad(ins.gameObject); } ins.ShowInspector(); }