| | |
| | | taskHoleCondition = result;
|
| | | }
|
| | | }
|
| | | UpdateTaskHoleRedpoint();
|
| | | //UpdateTaskHoleRedpoint();
|
| | | }
|
| | |
|
| | | RolePromoteModel m_PromoteModel;
|
| | |
| | | }
|
| | | playerLoginOk = true;
|
| | | UpdateRedpoint();
|
| | | UpdateTaskHoleRedpoint();
|
| | | //UpdateTaskHoleRedpoint();
|
| | | }
|
| | |
|
| | | public void CheckEquipPassSkill(PlayerSkillData _skill)
|
| | |
| | | UpdateRedpoint();
|
| | | }
|
| | |
|
| | | public Redpoint taskHoleRedpoint = new Redpoint(10302, 1030299);
|
| | | void UpdateTaskHoleRedpoint()
|
| | | {
|
| | | taskHoleRedpoint.state = RedPointState.None;
|
| | | if (DayRemind.Instance.GetDayRemind(DayRemind.TASK_SKILL_HOLE))
|
| | | {
|
| | | return;
|
| | | }
|
| | | foreach (var hole in taskHoleDict.Keys)
|
| | | {
|
| | | var taskId = taskHoleDict[hole];
|
| | | if (IsImmediatelyUnlock(hole))
|
| | | {
|
| | | var config = Config.Instance.Get<PyTaskConfig>(taskId);
|
| | | if (PlayerDatas.Instance.baseData.LV >= config.lv
|
| | | && !IsTaskHoleUnlock(hole))
|
| | | {
|
| | | taskHoleRedpoint.state = RedPointState.Simple;
|
| | | }
|
| | | return;
|
| | | }
|
| | | }
|
| | | }
|
| | | //public Redpoint taskHoleRedpoint = new Redpoint(10302, 1030299);
|
| | | //void UpdateTaskHoleRedpoint()
|
| | | //{
|
| | | // taskHoleRedpoint.state = RedPointState.None;
|
| | | // if (DayRemind.Instance.GetDayRemind(DayRemind.TASK_SKILL_HOLE))
|
| | | // {
|
| | | // return;
|
| | | // }
|
| | | // foreach (var hole in taskHoleDict.Keys)
|
| | | // {
|
| | | // var taskId = taskHoleDict[hole];
|
| | | // if (IsImmediatelyUnlock(hole))
|
| | | // {
|
| | | // var config = Config.Instance.Get<PyTaskConfig>(taskId);
|
| | | // if (PlayerDatas.Instance.baseData.LV >= config.lv
|
| | | // && !IsTaskHoleUnlock(hole))
|
| | | // {
|
| | | // taskHoleRedpoint.state = RedPointState.Simple;
|
| | | // }
|
| | | // return;
|
| | | // }
|
| | | // }
|
| | | //}
|
| | |
|
| | | public bool IsImmediatelyUnlock(int hole)
|
| | | {
|
| | |
| | | public void SetTaskHoleRemind()
|
| | | {
|
| | | DayRemind.Instance.SetDayRemind(DayRemind.TASK_SKILL_HOLE, true);
|
| | | UpdateTaskHoleRedpoint();
|
| | | //UpdateTaskHoleRedpoint();
|
| | | }
|
| | | #endregion
|
| | |
|
| | |
| | | if (_id == 109)
|
| | | {
|
| | | UpdateRedpoint();
|
| | | UpdateTaskHoleRedpoint();
|
| | | //UpdateTaskHoleRedpoint();
|
| | | }
|
| | | }
|
| | | }
|