Add more buttons to account manager + async scene management

This commit is contained in:
2025-06-01 14:29:38 -07:00
parent 10edf9660d
commit f7f2552ae8
5 changed files with 798 additions and 19 deletions

View File

@@ -65,7 +65,7 @@ public class Iconsmenu : MonoBehaviour
PlayerPrefs.SetInt("icon", Mathf.Clamp(PlayerPrefs.GetInt("icon", 0), 1, 8));
PlayerPrefs.SetInt("overlay", Mathf.Clamp(PlayerPrefs.GetInt("overlay", 0), 0, 9));
PlayerPrefs.Save();
SceneManager.LoadScene("MainMenu");
SceneManager.LoadSceneAsync("MainMenu");
});
icon1.onClick.AddListener(() => SelectIcon(1));
icon2.onClick.AddListener(() => SelectIcon(2));