Beispiel #1
0
        /// <summary>
        /// Destroy the webview instance.
        /// This does not remove this component. Just remove the webview instance and event listener.
        /// </summary>
        public void Destroy()
        {
            if (setup == true)
            {
#if UNIWEBVIEW3_SUPPORTED
                UniWebViewInterface.Destroy(listener.Name);
#elif UNIWEBVIEW2_SUPPORTED
                UniWebViewPlugin.Destroy(listener.Name);
#else
                WWebViewPlugin.Destroy(listener.Name);
#endif
                Destroy(listener.gameObject);
                setup = false;
            }
        }
Beispiel #2
0
 void OnDestroy()
 {
     UniWebViewNativeListener.RemoveListener(listener.Name);
     UniWebViewInterface.Destroy(listener.Name);
     Destroy(listener.gameObject);
 }
Beispiel #3
0
 void OnDestroy()
 {
     UniWebViewInterface.Destroy(listener.Name);
     Destroy(listener.gameObject);
 }