Update leaderboards menu
This commit is contained in:
@@ -1055,11 +1055,11 @@ RectTransform:
|
|||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 222049256}
|
- {fileID: 222049256}
|
||||||
- {fileID: 1222881555}
|
|
||||||
- {fileID: 13520179}
|
- {fileID: 13520179}
|
||||||
|
- {fileID: 1222881555}
|
||||||
- {fileID: 992753024}
|
- {fileID: 992753024}
|
||||||
- {fileID: 203659856}
|
|
||||||
- {fileID: 287845921}
|
- {fileID: 287845921}
|
||||||
|
- {fileID: 203659856}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ public class LeaderboardsMenu : MonoBehaviour
|
|||||||
void SwitchMenu(int menu)
|
void SwitchMenu(int menu)
|
||||||
{
|
{
|
||||||
UpdateStatus(false, "");
|
UpdateStatus(false, "");
|
||||||
|
if (scorePanel.activeSelf)
|
||||||
|
{
|
||||||
foreach (Transform item in scoreContent.transform)
|
foreach (Transform item in scoreContent.transform)
|
||||||
{
|
{
|
||||||
if (item.gameObject.activeSelf)
|
if (item.gameObject.activeSelf)
|
||||||
@@ -55,6 +57,9 @@ public class LeaderboardsMenu : MonoBehaviour
|
|||||||
Destroy(item.gameObject);
|
Destroy(item.gameObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else if (berryPanel.activeSelf)
|
||||||
|
{
|
||||||
foreach (Transform item in berryContent.transform)
|
foreach (Transform item in berryContent.transform)
|
||||||
{
|
{
|
||||||
if (item.gameObject.activeSelf)
|
if (item.gameObject.activeSelf)
|
||||||
@@ -62,6 +67,7 @@ public class LeaderboardsMenu : MonoBehaviour
|
|||||||
Destroy(item.gameObject);
|
Destroy(item.gameObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch (menu)
|
switch (menu)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user