Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (webView != null)
        {
            //Debug.Log("---Loading flag : " + webView.isLoading().ToString());
            if (webView.isLoading() == true && loadingProcessFlag == false)
            {
                loadingProcessFlag = true;

                LoadingProgressBar.SetActive(true);
                //if (webViewOnceLoaded)
                {
                    StartCoroutine("ProcessLoading");
                }
            }
            else if (webView.isLoading() == false && loadingProcessFlag == true)
            {
                webViewOnceLoaded = true;
                StartCoroutine("FinishLoading");
            }
        }
    }