| | |
| | | achivementDict[info.SuccType] = new Dictionary<string, int>(); |
| | | } |
| | | |
| | | string key = info.CLen > 0 ? info.Conds.ToString() : ""; |
| | | string key = info.CLen > 0 ? string.Join("|", info.Conds) : ""; |
| | | achivementDict[info.SuccType][key] = (int)info.CurValue; |
| | | |
| | | OnAchievementUpdateEvent?.Invoke(info.SuccType); |
| | |
| | | //获取成就状态 0: 未领取 1: 未达成 2: 已领取 |
| | | public int GetAchievementState(int id) |
| | | { |
| | | var process = GetAchievementProgress(id); |
| | | var config = SuccessConfig.Get(id); |
| | | var process = GetAchievementProgress(config.Type); |
| | | if (process < config.NeedCnt) |
| | | { |
| | | return 1; |