Пример #1
0
 public static void Close()
 {
     if (null != _ins)
     {
         GameObject.Destroy(_ins.gameObject);
         _ins = null;
     }
 }
Пример #2
0
        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);
        }