コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: ParameterFactory.cs プロジェクト: xeesar/IdleGame
 public ParameterFactory(string currentCity)
 {
     m_cityData                = ConfigManager.Instance.Get <CityConfig>().GetCityData(currentCity);
     m_cityProgressData        = ServiceLocator.Instance.Get <IUserProfileModel>().CurrentCityProgress;
     m_dynamicParametersLevels = m_cityProgressData.dynamicParametersLevels;
 }