Exemple #1
0
        public DynamicParameter Get(DynamicParameterType parameterType, DynamicParameterData data, int level)
        {
            DynamicParameter parameter = CreateParameter(parameterType, level, data);

            parameter.SetCalculators(GetProgressionCalculator(data.Parameter.progressionType), GetProgressionCalculator(data.Price.progressionType));

            return(parameter);
        }
Exemple #2
0
        public DynamicParameter Get(DynamicParameterType parameterType)
        {
            int level = m_dynamicParametersLevels[(int)parameterType];
            DynamicParameterData data = m_cityData.GetDynamicParameterData(parameterType);

            DynamicParameter parameter = CreateParameter(parameterType, level, data);

            parameter.SetCalculators(GetProgressionCalculator(data.Parameter.progressionType), GetProgressionCalculator(data.Price.progressionType));

            return(parameter);
        }
Exemple #3
0
        public void Debug()
        {
            for (int i = 0; i < m_dynamicParameters.Count; i++)
            {
                DynamicParameter dynamicParameter =
                    GetDynamicParameter(m_dynamicParameters[i].type, m_dynamicParameters[i]);

                for (int level = 1; level < 20; level++)
                {
                    dynamicParameter.SetLevel(level);
                    dynamicParameter.SetCalculators(GetProgressionCalculator(m_dynamicParameters[i].Parameter.progressionType), GetProgressionCalculator(m_dynamicParameters[i].Price.progressionType));
                    UnityEngine.Debug.Log($"{dynamicParameter.ParameterType} - Level: {level}, Value: {dynamicParameter.Value}, Price: {dynamicParameter.Price}");
                }
            }
        }