/// <summary> /// 销毁单例 /// </summary> public static void DisposeIns() { if (null != _ins) { if (null != _ins.gameObject) { GameObject.Destroy(_ins.gameObject); } _ins.Dispose(); _ins = null; } }
public override void Awake() { base.Awake(); webView = transform.GetComponent <ULiteWebView>(); }