Пример #1
0
 public static void Close()
 {
     if (null != _ins)
     {
         GameObject.Destroy(_ins.gameObject);
         _ins = null;
     }
 }
Пример #2
0
 public static void Show()
 {
     if (null == _ins)
     {
         const string NAME = "GUIDeviceInfo";
         GameObject   go   = new GameObject();
         go.name = NAME;
         _ins    = go.AddComponent <GUIDeviceInfo>();
         DontDestroyOnLoad(go);
     }
 }