Example #1
0
        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
            }
        }
Example #2
0
 void Dispose()
 {
     Close();
     _ulite = null;
 }