From c25830a67084d68f2a6b1a5f63a960bd8f4ca652 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Tue, 31 Dec 2024 16:17:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=B1=8F=E8=94=BD=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/UICameraSwitch.cs | 48 ++++++++++++++--------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/Assets/Scripts/UI/UICameraSwitch.cs b/Assets/Scripts/UI/UICameraSwitch.cs index 7890ac3b..532f5fe4 100644 --- a/Assets/Scripts/UI/UICameraSwitch.cs +++ b/Assets/Scripts/UI/UICameraSwitch.cs @@ -16,7 +16,7 @@ namespace QFramework.Example public Vector3 normalRot; public float nearTime; public float normalTime; - public bool isNear = false; + public bool isNear; } public partial class UICameraSwitch : UIPanel @@ -60,30 +60,28 @@ namespace QFramework.Example mData = uiData as UICameraSwitchData ?? new UICameraSwitchData(); - - - if (mData.isNear) - { - if (Near.isOn == false) - { - Near.isOn = true; - } - else - { - SetNear(); - } - } - else - { - if (Far.isOn == false) - { - Far.isOn = true; - } - else - { - SetNormal(); - } - } + //if (mData.isNear) + //{ + // if (Near.isOn == false) + // { + // Near.isOn = true; + // } + // else + // { + // SetNear(); + // } + //} + //else + //{ + // if (Far.isOn == false) + // { + // Far.isOn = true; + // } + // else + // { + // SetNormal(); + // } + //} } protected override void OnShow()