fix: Controller 초기화 로직 적용 및 Main Initialize 로직 추가

This commit is contained in:
aube.lee
2025-02-13 21:55:09 +09:00
parent 42c5804188
commit ec7e10f4b4
3 changed files with 6 additions and 5 deletions

View File

@@ -43,17 +43,14 @@ namespace TON
{
Main.Singleton.Initialize();
PlayerPrefs.SetInt("SelectedPlayerIndex", 0);
// PlayerDataManager.Singleton.SetCurrentUserData();
// TODO : Custom Order After System Load
UIManager.Show<TitleUI>(UIList.TitleUI);
// UIManager.Show<TitleUI>(UIList.TitleUI);
// UIManager.Show<CharaterCreateUI>(UIList.CharaterCreateUI);
// UIManager.Show<LobbyUI>(UIList.LobbyUI);
// UIManager.Show<IngameOptionUI>(UIList.IngameOptionUI);
// UIManager.Show<SkillSettingUI>(UIList.SkillSettingUI);
UIManager.Show<ControllerUI>(UIList.ControllerUI);
// UIManager.Show<IngameUI>(UIList.IngameUI);
// UIManager.Show<ControllerUI>(UIList.ControllerUI);
// ControllerUI.Instance.Initalize();
}
}

View File

@@ -27,6 +27,9 @@ namespace TON
UIManager.Singleton.Initalize();
// TODO : GameDataModel.Singleton.Initalize();
PlayerDataManager.Singleton.Initalize();
PlayerPrefs.SetInt("SelectedPlayerIndex", 0);
PlayerDataManager.Singleton.SetCurrentUserData();
SkillDataManager.Singleton.Initalize();
isIniaialized = true;

View File

@@ -23,6 +23,7 @@ namespace TON
private void Awake()
{
skillButtonPrefab.gameObject.SetActive(false);
Initalize();
}
public void Initalize()