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