protected override IEnumerator Load() { yield return(SceneManager.LoadSceneAsync("SplashUI", 1)); m_splashUIScene = SceneManager.GetSceneByName("SplashUI"); while (!m_splashUIScene.get_isLoaded()) { yield return(null); } m_ui = ScenesUtility.GetSceneRoot <AbstractUI>(m_splashUIScene); m_ui.SetDepth(this); }
protected static bool TryGetSceneAndRoot <T>(string sceneName, out Scene scene, out T root) where T : MonoBehaviour { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) scene = SceneManager.GetSceneByName(sceneName); if (!scene.IsValid()) { Log.Error("Invalid scene '" + sceneName + "'.", 144, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\States\\LoadSceneStateContext.cs"); root = default(T); return(false); } root = ScenesUtility.GetSceneRoot <T>(scene); return(null != (object)root); }