Work on improving the main menu
This commit is contained in:
6 files changed
+2183
-1405
No files matched your search
@@ -49,6 +49,15 @@ public class MainMenu : MonoBehaviour {
|
||||
clone.SetActive(true);
|
||||
await clone.GetComponent<ProfileMenu>().Init();
|
||||
});
|
||||
try {
|
||||
Tools.LoadIcon(
|
||||
profileButton.transform.GetChild(1).GetComponent<Image>(),
|
||||
profileButton.transform.GetChild(1).GetChild(0).GetComponent<Image>()
|
||||
);
|
||||
}
|
||||
catch (Exception e) {
|
||||
Debug.LogError(e);
|
||||
}
|
||||
profileButton.gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -154,6 +154,19 @@ public static class Tools {
|
||||
}
|
||||
}
|
||||
|
||||
public static void LoadIcon(Image icon, Image overlay) {
|
||||
LoadIcon(
|
||||
icon,
|
||||
overlay,
|
||||
BazookaManager.Instance.GetBirdIcon(),
|
||||
BazookaManager.Instance.GetBirdOverlay(),
|
||||
BazookaManager.Instance.GetColorSettingIcon(),
|
||||
BazookaManager.Instance.GetColorSettingOverlay(),
|
||||
BazookaManager.Instance.GetCustomBirdIconData().Selected,
|
||||
BazookaManager.Instance.GetAccountID() ?? 0
|
||||
);
|
||||
}
|
||||
|
||||
public static GameObject[] GetAllBerries(Transform berryParent) {
|
||||
GameObject[] children = new GameObject[berryParent.childCount];
|
||||
for (int i = 0; i < berryParent.childCount; i++) {
|
||||
|
||||
Reference in new issue
Block a user