示例#1
0
 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);
 }
示例#2
0
        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);
        }