Пример #1
0
        public static float GetBossPowerByLevel(uint level)
        {
            SpecialBossData specialBossData = GetSpecialBossDataByLevel(level);

            if (specialBossData != null)
            {
                return(specialBossData.bossPower);
            }
            return(1f);
        }
Пример #2
0
        public static SpecialBossData GetSpecialBossDataByLevel(uint level)
        {
            GetSpecialBossDatas();
            SpecialBossData specialBossData = null;

            if (_specialBossDataDictionary.ContainsKey(level))
            {
                specialBossData = _specialBossDataDictionary[level];
            }
            else
            {
                Debugger.LogError("can not find SpecialBossData data ,level:" + level);
            }
            return(specialBossData);
        }