Update leaderboards menu

This commit is contained in:
2025-06-30 15:35:22 -07:00
parent 0c2483f249
commit 663da562dd
2 changed files with 14 additions and 8 deletions

View File

@@ -1055,11 +1055,11 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 222049256}
- {fileID: 1222881555}
- {fileID: 13520179}
- {fileID: 1222881555}
- {fileID: 992753024}
- {fileID: 203659856}
- {fileID: 287845921}
- {fileID: 203659856}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}

View File

@@ -48,6 +48,8 @@ public class LeaderboardsMenu : MonoBehaviour
void SwitchMenu(int menu)
{
UpdateStatus(false, "");
if (scorePanel.activeSelf)
{
foreach (Transform item in scoreContent.transform)
{
if (item.gameObject.activeSelf)
@@ -55,6 +57,9 @@ public class LeaderboardsMenu : MonoBehaviour
Destroy(item.gameObject);
}
}
}
else if (berryPanel.activeSelf)
{
foreach (Transform item in berryContent.transform)
{
if (item.gameObject.activeSelf)
@@ -62,6 +67,7 @@ public class LeaderboardsMenu : MonoBehaviour
Destroy(item.gameObject);
}
}
}
switch (menu)
{