public void Init() { if (null == _ulite) { Debug.Log("LiteWebView init"); #if !UNITY_EDITOR #if UNITY_ANDROID Debug.Log("LiteWebView:Android"); _ulite = new LiteAndroidWebView(getFullName(this.gameObject)); #elif UNITY_IOS Debug.Log("LiteWebView:iOS"); _ulite = new LiteIosWebView(getFullName(this.gameObject)); #endif #endif } }
void Dispose() { Close(); _ulite = null; }