예제 #1
0
        private void OpenWebView(string url, float showDelay = 0)
        {
            if (Application.isEditor)
            {
                Debug.LogWarning("Webview unavailable in Unity Editor");
                return;
            }

            webView = gameObject.GetComponent <OKWebView>();
            if (webView == null)
            {
                webView = gameObject.AddComponent <OKWebView>();
            }
            webView.Load(url);
            webView.Show(showDelay);
        }