| | |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | using System.Threading; |
| | | using System; |
| | | using UnityEngine; |
| | | using LitJson; |
| | | |
| | | |
| | | public partial class HeroAwakeConfig : ConfigBase<int, HeroAwakeConfig> |
| | | { |
| | |
| | | configDics.Add(HeroID, tempDic); |
| | | } |
| | | |
| | | if (tempDic.ContainsKey(AwakeLV)) |
| | | { |
| | | // 覆盖,防止二次初始化出错 |
| | | tempDic[AwakeLV] = this; |
| | | } |
| | | else |
| | | { |
| | | tempDic.Add(AwakeLV, this); |
| | | } |
| | | tempDic[AwakeLV] = this; |
| | | } |
| | | |
| | | public static HeroAwakeConfig GetHeroAwakeConfig(int heroID, int awakeLv) |
| | |
| | | return config; |
| | | } |
| | | |
| | | public static bool IsReachMax(int heroID, int awakeLv) |
| | | public static bool CanAwake(int heroID, int awakeLv) |
| | | { |
| | | return GetHeroAwakeConfig(heroID, awakeLv) == null; |
| | | } |