| | |
| | | var config = SuccessConfig.Get(successID); |
| | | |
| | | SuccessCond.text = AchievementModel.ParseAchievementDescription(successID); |
| | | if (achievement.progress >= config.NeedCnt) |
| | | int process = Mathf.Min(achievement.progress, config.NeedCnt); |
| | | if (achievement.completed) |
| | | { |
| | | SuccessProcess.text = "(" + UIHelper.AppendColor(TextColType.Green, achievement.progress.ToString()) + "/" + config.NeedCnt + ")"; |
| | | //已领取完成的 服务端不通知,则根据领取算满值 |
| | | process = config.NeedCnt; |
| | | } |
| | | if (process >= config.NeedCnt) |
| | | { |
| | | SuccessProcess.text = "(" + UIHelper.AppendColor(TextColType.DarkGreen, process.ToString()) + "/" + config.NeedCnt + ")"; |
| | | } |
| | | else |
| | | { |
| | | SuccessProcess.text = "(" + UIHelper.AppendColor(TextColType.Red, achievement.progress.ToString()) + "/" + config.NeedCnt + ")"; |
| | | SuccessProcess.text = "(" + UIHelper.AppendColor(TextColType.Red, process.ToString()) + "/" + config.NeedCnt + ")"; |
| | | } |
| | | for (int i = 0; i < m_Items.Length; i++) |
| | | { |
| | |
| | | m_GetEffect.gameObject.SetActive(false); |
| | | m_GetEffect.Stop(); |
| | | bool isReach = false; |
| | | if (!Achievement.IsReach(successID, achievement.progress)) |
| | | if (!achievement.completed && !Achievement.IsReach(successID, achievement.progress)) |
| | | { |
| | | //m_GetBtn.SetColorful(m_GetText, false); |
| | | m_GetBtn.SetActive(false); |