| | |
| | |
|
| | | if (PlayerDatas.Instance.baseData.LV == GeneralConfig.Instance.demonJarRedPoint)
|
| | | {
|
| | | var count = dungeonModel.GetTotalTimes(DEMONJAR_MAPID) - dungeonModel.GetEnterTimes(DEMONJAR_MAPID);
|
| | | redpoint.state = count > 0 ? RedPointState.Quantity : RedPointState.None;
|
| | | redpoint.count = count;
|
| | | UpdateRedpoint();
|
| | | }
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | private void UpdateRedpoint()
|
| | | {
|
| | | if (FuncOpen.Instance.IsFuncOpen(76))
|
| | | {
|
| | | var count = dungeonModel.GetTotalTimes(DEMONJAR_MAPID) - dungeonModel.GetEnterTimes(DEMONJAR_MAPID);
|
| | | redpoint.count = count;
|
| | | }
|
| | | else
|
| | | {
|
| | | redpoint.count = 0;
|
| | | }
|
| | |
|
| | | redpoint.state = redpoint.count > 0 ? RedPointState.Quantity : RedPointState.None;
|
| | | }
|
| | |
|
| | | private void OnMapLineUpdateEvent(int _mapId)
|
| | |
| | | {
|
| | | if (DEMONJAR_MAPID == _dataMapId && PlayerDatas.Instance.baseData.LV >= GeneralConfig.Instance.demonJarRedPoint)
|
| | | {
|
| | | var count = dungeonModel.GetTotalTimes(_dataMapId) - dungeonModel.GetEnterTimes(_dataMapId);
|
| | | redpoint.state = count > 0 ? RedPointState.Quantity : RedPointState.None;
|
| | | redpoint.count = count;
|
| | | UpdateRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (PlayerDatas.Instance.baseData.LV >= GeneralConfig.Instance.demonJarRedPoint)
|
| | | {
|
| | | var count = dungeonModel.GetTotalTimes(DEMONJAR_MAPID) - dungeonModel.GetEnterTimes(DEMONJAR_MAPID);
|
| | | redpoint.state = count > 0 ? RedPointState.Quantity : RedPointState.None;
|
| | | redpoint.count = count;
|
| | | UpdateRedpoint();
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | private void AutoSubscribeLastUnLockBoss(int _bossId)
|