Example #1
0
        void Start()
        {
#if !UNITY_EDITOR
    #if UNITY_ANDROID
            _ulite = new ULiteAndroidWebView(getFullName(this.gameObject));
    #elif UNITY_IOS
            _ulite = new ULiteIosWebView(getFullName(this.gameObject));
    #endif
#endif
        }
Example #2
0
        void Init()
        {
            if (null == _ulite)
            {
#if !UNITY_EDITOR
#if UNITY_ANDROID
                Debug.Log("ULiteWebView:Android");
                _ulite = new ULiteAndroidWebView(getFullName(this.gameObject));
#elif UNITY_IOS
                Debug.Log("ULiteWebView:iOS");
                _ulite = new ULiteIosWebView(getFullName(this.gameObject));
#endif
#endif
            }
        }
Example #3
0
 void Dispose()
 {
     Close();
     _ulite = null;
 }