public static void DeleteWebView()
 {
     if (CMDWebWindow.webViewObject != null)
     {
         CMDWebWindow.webViewObject.Close();
         CMDWebWindow.webViewObject.Destroy();
         CMDWebWindow.webViewObject = null;
     }
 }
 private void InitializeWebViewInstance()
 {
     if (this.webViewObject == null)
     {
         this.webViewObject = new NpWebView();
         this.webViewObject.SetHardwareAccelerated(true);
         this.webViewObject.SetNpWebViewListener(base.gameObject, this);
     }
 }
 public void DeleteWebView()
 {
     if (this.webViewObject != null)
     {
         this.isOpen = false;
         this.webViewObject.Close();
         this.webViewObject.Destroy();
         this.webViewObject = null;
     }
 }
    protected void SetWebView()
    {
        CMDWebWindow.webViewObject = new NpWebView();
        CMDWebWindow.webViewObject.SetHardwareAccelerated(true);
        CMDWebWindow.webViewObject.SetNpWebViewListener(base.gameObject, this);
        Transform  transform     = base.transform;
        float      num           = transform.localPosition.x - 8000f;
        int        num2          = Mathf.CeilToInt(this.webViewRect.y + transform.localPosition.y);
        int        num3          = Mathf.CeilToInt(this.webViewRect.y - this.webViewRect.height + transform.localPosition.y);
        int        num4          = Mathf.CeilToInt(this.webViewRect.x + num);
        int        num5          = Mathf.CeilToInt(this.webViewRect.x + this.webViewRect.width + num);
        List <int> webViewMargin = this.GetWebViewMargin((float)num4, (float)num2, (float)num5, (float)num3);
        Camera     orthoCamera   = GUIMain.GetOrthoCamera();
        int        num6          = orthoCamera.pixelWidth - (webViewMargin[0] + webViewMargin[2]);
        int        num7          = orthoCamera.pixelHeight - (webViewMargin[1] + webViewMargin[3]);

        CMDWebWindow.webViewObject.ReSize((float)webViewMargin[0], (float)webViewMargin[1], (float)num6, (float)num7);
    }