public static void Close() { if (null != _ins) { GameObject.Destroy(_ins.gameObject); _ins = null; } }
public static void Show() { if (null == _ins) { const string NAME = "GUIDeviceInfo"; GameObject go = new GameObject(); go.name = NAME; _ins = go.AddComponent <GUIDeviceInfo>(); DontDestroyOnLoad(go); } }