Пример #1
0
 /// <summary>
 /// 销毁单例
 /// </summary>
 public static void DisposeIns()
 {
     if (null != _ins)
     {
         if (null != _ins.gameObject)
         {
             GameObject.Destroy(_ins.gameObject);
         }
         _ins.Dispose();
         _ins = null;
     }
 }
Пример #2
0
    public override void Awake()
    {
        base.Awake();

        webView = transform.GetComponent <ULiteWebView>();
    }