Beispiel #1
0
 public UILoader(LoadSceneStateContext uiloader, StateContext uiHoster, string sceneName, string uiBundleName, bool disableOnLoad = false)
 {
     //IL_0029: Unknown result type (might be due to invalid IL or missing references)
     m_stateLoader   = uiloader;
     m_stateHoster   = uiHoster;
     m_bundleName    = uiBundleName;
     m_sceneName     = sceneName;
     m_uiScene       = default(Scene);
     m_ui            = null;
     m_disableOnLoad = disableOnLoad;
 }
Beispiel #2
0
        protected override IEnumerator Load()
        {
            string sceneName = ScenesUtility.GetHavreMapSceneName(PlayerData.instance.havreMapSceneIndex);

            yield return(LoadSceneAndBundleRequest(sceneName, "core/scenes/maps/havre_maps"));

            if (!LoadSceneStateContext.TryGetSceneAndRoot(sceneName, out Scene _, out m_havreMap))
            {
                Log.Error("could not find Havre Map", 37, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\States\\HavreDimension\\HavreDimensionMainState.cs");
                yield break;
            }
            yield return(m_havreMap.Initialize());

            yield return(LoadCharacterSkin());

            yield return(LoadGod());

            m_havreMap.InitEnterAnimFirstFrame();
        }
Beispiel #3
0
 public UILoader(LoadSceneStateContext uiloader, string sceneName, string uiBundleName, bool disableOnLoad = false)
     : this(uiloader, uiloader, sceneName, uiBundleName, disableOnLoad)
 {
 }