public void Complete_Get_Version(bool latestversion) { if (latestversion) { m_Loading = Loading_Sequence.INIT_DATA; } else { m_Loading = Loading_Sequence.PATCH_DATA; DataManager.GetData(); } }
public void Loading() { switch (m_Loading) { case Loading_Sequence.START: { m_Loading = Loading_Sequence.CHECK_DATA_VERSION; break; } case Loading_Sequence.CHECK_DATA_VERSION: { DataManager.Instance.Init(); break; } case Loading_Sequence.PATCH_DATA: { break; } case Loading_Sequence.INIT_DATA: { m_Loading = Loading_Sequence.INIT_ADVENDATA; break; } case Loading_Sequence.INIT_ADVENDATA: { AdventurerManager.Instance.Init(); m_Loading = Loading_Sequence.INIT_PARTYDATA; break; } case Loading_Sequence.INIT_PARTYDATA: { PartyManager.Instance.Init(); m_Loading = Loading_Sequence.END; break; } case Loading_Sequence.END: { SceneManager.LoadSceneAsync("2_Game", LoadSceneMode.Single); SceneManager.LoadSceneAsync("1_Lobby", LoadSceneMode.Additive); isLoaded = true; break; } } }