Browse Source

关闭切楼层时重置楼层信息

develop
曹衍涛 3 years ago
parent
commit
462b55c868
  1. 5
      Assets/MscPublic/Assets/Scripts/MainScene/FloorControlModule/UIFloor.cs

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

Loading…
Cancel
Save