From 462b55c868b5521e551376856485fb1eae50b123 Mon Sep 17 00:00:00 2001 From: cyt2268162076 <2268162076@qq.com> Date: Wed, 23 Mar 2022 11:39:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=88=87=E6=A5=BC=E5=B1=82?= =?UTF-8?q?=E6=97=B6=E9=87=8D=E7=BD=AE=E6=A5=BC=E5=B1=82=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Scripts/MainScene/FloorControlModule/UIFloor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/MscPublic/Assets/Scripts/MainScene/FloorControlModule/UIFloor.cs b/Assets/MscPublic/Assets/Scripts/MainScene/FloorControlModule/UIFloor.cs index 6be7f0f..99cfd48 100644 --- a/Assets/MscPublic/Assets/Scripts/MainScene/FloorControlModule/UIFloor.cs +++ b/Assets/MscPublic/Assets/Scripts/MainScene/FloorControlModule/UIFloor.cs @@ -55,6 +55,10 @@ public class UIFloor : BaseToggle //CameraManager.Instance.initialTargetPosY = MyTarget.position.y; } + if (!anyIsOn) + { + floorsPanelManager.CurrentFloor.floorNum = 0; + } if (isOn) { if (MyChildFloors.Count > 0) @@ -79,6 +83,7 @@ public class UIFloor : BaseToggle item.gameObject.SetActive(false); } } + floorsPanelManager.CurrentFloor.floorNum = 0; HideFloor(); } }