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(); } }