public T GetConfig <T>() where T : Config { System.Type type = typeof(T); BaseConfigManager baseConfig = MainConfigManager.GetInstance(); Config config = baseConfig.GetConfig <T>(); if (config != null) { return(config as T); } return(null); }
IEnumerator Start() { yield return(MainConfigManager.GetInstance().Initialize()); _playerInfo = PlayerInfo.Instance(); _model = LotPlayer.Instance(); View.Initionlize(); View.InitByData(_playerInfo, _model); int cost = _model.GetCurrentTurnGameCost(false); if (cost != 0) { View.ShowCostPage(cost); } else { _model.GetCurrentTurnGameCost(true); } }