| | |
| | |
|
| | | public Redpoint redpoint = new Redpoint(201, 20111);
|
| | |
|
| | | public List<int> reachSuccessIDs = new List<int>(); //已达标的成就ID,用于对比变化
|
| | |
|
| | | #region
|
| | | //修行之路
|
| | | public event Action OnUpdateBPDataEvent;
|
| | |
| | | {
|
| | | achievement.ResetAchievementState();
|
| | | }
|
| | | reachSuccessIDs.Clear();
|
| | | }
|
| | |
|
| | | public void UpdateAchievementProgress(int _achievementId, int _progress)
|
| | |
| | |
|
| | | if (Achievement.IsReach(_achievementId, _progress))
|
| | | {
|
| | | if (!reachSuccessIDs.Contains(_achievementId))
|
| | | reachSuccessIDs.Add(_achievementId);
|
| | | if (achievementAwardableEvent != null)
|
| | | {
|
| | | achievementAwardableEvent(_achievementId);
|