示例#1
0
        public IGameBase GetGame(string gname)
        {
            IGameBase gbase = null;

            gameDic.TryGetValue(gname, out gbase);
            return(gbase);
        }
示例#2
0
 /// <summary>
 /// 启动游戏
 /// 卸载之前的游戏
 /// </summary>
 /// <param name="param"></param>
 internal void StartUp(object param = null)
 {
     if (this == NowActiveGame)
     {
         return;
     }
     else if (NowActiveGame != null)
     {
         NowActiveGame.UnLoad();
     }
     //   else  NowActiveGame?.UnLoad();    //unity版本得支持c#4.0以上
     NowActiveGame = this;
     LoadScene(0);
     // AppFacade.Ins.GetMgr<SceneMgr>().LoadScene(sceneName[0]);
     OnStartUp(param);
     Debug.Log("启动游戏" + gameName);
 }