| | |
| | | [SerializeField] ScrollerController scrollerController;
|
| | | [SerializeField] RectTransform m_ContainerGetWay;
|
| | | [SerializeField] ClickScreenOtherSpace clickOtherSpace;
|
| | | [SerializeField, Header("特效时长")] float m_EffectDuration = 1f;
|
| | | private List<SkillConfig> skillListPass = new List<SkillConfig>();
|
| | | private int presentSltEquipIndex = -1;
|
| | | Coroutine cacheCoroutine = null;
|
| | |
| | | UpdateEquipPassSkill();
|
| | | SetEquipHoleSelect(GetEquipHoleIndex(model.presentSltSkillID));
|
| | | DayRemind.Instance.SetDayRemind(DayRemind.PASS_SKILL_REDPOINT, true);
|
| | | model.taskUnlockUpdate += TaskUnlockUpdate;
|
| | |
|
| | | if (cacheCoroutine != null)
|
| | | {
|
| | |
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | DisplayEffect();
|
| | | model.taskUnlockUpdate += TaskUnlockUpdate;
|
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | |
| | |
|
| | | IEnumerator Co_UnlockEffectComplete()
|
| | | {
|
| | | yield return WaitingForSecondConst.WaitMS800;
|
| | | var duration = m_EffectDuration > 0f ? m_EffectDuration : 1.0f;
|
| | | yield return WaitingForSecondConst.GetWaitForSeconds(duration);
|
| | | SysNotifyMgr.Instance.ShowTip("PassNewHole");
|
| | | UpdateEquipPassSkill();
|
| | | }
|
| | |
| | | }
|
| | | else if (_limit.OpenSkillSlots > 0 && !model.IsTaskHoleUnlock(_limit.OpenSkillSlots))
|
| | | {
|
| | | return true;
|
| | | return false;
|
| | | }
|
| | | }
|
| | | return false;
|
| | |
| | | taskName = taskInfoConfig == null ? string.Empty : taskInfoConfig.show_writing;
|
| | | }
|
| | | }
|
| | | equipPassSkills[i].skillData.m_SkillNameTxt.text = Language.Get("PassSkillHoleLimitTask", taskName);
|
| | | equipPassSkills[i].skillData.m_SkillNameTxt.text =
|
| | | UIHelper.ReplaceNewLine(Language.Get(StringUtility.Contact("PassSkillHoleLimitTask_", limit.OpenSkillSlots)));
|
| | | continue;
|
| | | }
|
| | | }
|
| | |
| | | taskName = taskInfoConfig == null ? string.Empty : taskInfoConfig.show_writing;
|
| | | }
|
| | | }
|
| | | SysNotifyMgr.Instance.ShowTip("PassEquipLimitTask", taskName);
|
| | | m_GetWayBtn.gameObject.SetActive(true);
|
| | | SysNotifyMgr.Instance.ShowTip(StringUtility.Contact("PassSkillHoleLimitTask_", limit.OpenSkillSlots));
|
| | | m_GetWayBtn.gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | }
|