public string GetSceneName(ScnType _sceneID) { if (dicSceneInfos.ContainsKey(_sceneID)) { return(dicSceneInfos[_sceneID].SceneName); } Debug.LogError("This Scene is not register! ID: " + _sceneID.ToString()); return(null); }
internal BaseScene GetBaseScene(ScnType _sceneType) { Debug.Log(" GetBaseScene sceneId = " + _sceneType.ToString()); SceneInfoData sceneInfo = GetSceneInfo(_sceneType); if (sceneInfo == null || sceneInfo.SceneType == null) { return(null); } BaseScene scene = System.Activator.CreateInstance(sceneInfo.SceneType) as BaseScene; return(scene); }