UI update 02

This commit is contained in:
FloatGaming
2026-06-30 21:21:30 +08:00
parent b2a1e307a4
commit f62f643cfc
1666 changed files with 211081 additions and 22799 deletions
@@ -102,7 +102,7 @@ public class UI_SelectSong_EnterAnim : MonoBehaviour
for (int i = 0; i < difficultyGroup.childCount; i++)
{
RectTransform child = difficultyGroup.GetChild(i) as RectTransform;
if (child != null)
if (child != null && child.gameObject.activeSelf)
{
difficultyItems.Add(child);
}
@@ -317,7 +317,7 @@ public class UI_SelectSong_EnterAnim : MonoBehaviour
void SnapVisible(RectTransform rect, bool applyScale)
{
if (rect == null) return;
if (!rect.gameObject.activeSelf) rect.gameObject.SetActive(true);
if (!rect.gameObject.activeSelf) return;
CacheBase(rect);
if (basePos.TryGetValue(rect, out Vector2 pos))