From e50d4e2d5c9611be0b23688638117f9768845e41 Mon Sep 17 00:00:00 2001 From: lurenfei <943136044@qq.com> Date: Wed, 24 Jan 2024 18:40:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=8F=AF=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=20=E4=BF=AE=E6=AD=A3=E4=B8=BA=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=97=B6=E5=85=A8=E5=B1=8F=E5=8F=AF=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/BrideWebView.cs | 12 ++++++++++++ Assets/Scripts/Old/ScreenUp.cs | 3 +-- Assets/Scripts/WebPoint.cs | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/BrideWebView.cs b/Assets/Scripts/BrideWebView.cs index 30c6522..4aa2466 100644 --- a/Assets/Scripts/BrideWebView.cs +++ b/Assets/Scripts/BrideWebView.cs @@ -76,6 +76,18 @@ public class BrideWebView : MonoBehaviour { VideoManager.instance.ShowVideo(webMessage.Message); } + else if (webMessage.Type == "Tip") + { + if (webMessage.Message.Equals("true")) + { + WebPoint.instance.enabled = false; + } + else if (webMessage.Message.Equals("false")) + { + WebPoint.instance.enabled = true; + } + } + else { PeiDianShiDianGuiParent.Instance.CameraShow(webMessage.Type, webMessage.Message); diff --git a/Assets/Scripts/Old/ScreenUp.cs b/Assets/Scripts/Old/ScreenUp.cs index 1e6761a..35ce76b 100644 --- a/Assets/Scripts/Old/ScreenUp.cs +++ b/Assets/Scripts/Old/ScreenUp.cs @@ -7,12 +7,11 @@ public class ScreenUp : MonoBehaviour // Start is called before the first frame update void Start() { - + Screen.SetResolution(7680, 3240, false); } // Update is called once per frame void Update() { - Screen.SetResolution(7680, 3240, false); } } diff --git a/Assets/Scripts/WebPoint.cs b/Assets/Scripts/WebPoint.cs index 512d318..8d918c6 100644 --- a/Assets/Scripts/WebPoint.cs +++ b/Assets/Scripts/WebPoint.cs @@ -6,6 +6,7 @@ using UnityEngine.UI; public class WebPoint : MonoBehaviour { + public bool ison; public static WebPoint instance; private RawImage rawImage; Vector3 mousePosition;