示例#1
0
 public CSceneManager()
 {
     //初始化场景表
     m_SceneList = new Dictionary <string, CScene>();
     //初始化切换场景
     m_NextScene = null;
 }
示例#2
0
 //加载场景
 public bool LoadScene(string id, CScene scene)
 {
     //查找场景id是否已存在
     if (m_SceneList.ContainsKey(id))
     {
         return(false);
     }
     //加载场景
     m_SceneList.Add(id, scene);
     return(true);
 }