public void DynamicParameterUpdated(DynamicParameterType type, int level) { AnalyticEvent analyticEvent = new AnalyticEvent(StringConstants.AnalyticsEvents.UpgradeDynamicParameter); analyticEvent.AddParameter(StringConstants.AnalyticsEventsParameters.ParameterType, type.ToFriendlyName()); AnalyticsManager.Instance.SendCustomEvent(analyticEvent); CityProgressData cityProgressData = ServiceLocator.Instance.Get <IUserProfileModel>().CurrentCityProgress; Dictionary <int, int> dynamicParametersLevels = cityProgressData.dynamicParametersLevels; dynamicParametersLevels[(int)type] = level; }
public ParameterFactory(string currentCity) { m_cityData = ConfigManager.Instance.Get <CityConfig>().GetCityData(currentCity); m_cityProgressData = ServiceLocator.Instance.Get <IUserProfileModel>().CurrentCityProgress; m_dynamicParametersLevels = m_cityProgressData.dynamicParametersLevels; }