示例#1
0
        public void LoadGameTypeConfig(LobbyGamesConfig lobbyGameConfig)
        {
            if (currentGameTypeConfig != null && currentGameTypeConfig.gameType != lobbyGameConfig.gameType)
            {
                currentGameTypeConfig = null;
            }
            else if (currentGameTypeConfig != null && currentGameTypeConfig.gameType == lobbyGameConfig.gameType)
            {
                return;
            }

            if (lobbyGameConfig.gameType == CasinoGameType.Slots)
            {
                currentGameTypeConfig = Resources.Load <SlotsGameConfig>(lobbyGameConfig.mainGameConfigInResources);
            }

            currentSimpleGameConfig = null;
        }
示例#2
0
 public void ClearCurrentGameConfigs()
 {
     currentGameTypeConfig   = null;
     currentSimpleGameConfig = null;
 }