| | |
| | | m_FeatureNoticeTip.Init();
|
| | | OnCreateGridLineCell(m_ScrollerController); |
| | | ContentDisplay();
|
| | | |
| | | |
| | |
|
| | |
|
| | | } |
| | | protected override void OnActived()
|
| | | {
|
| | |
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += OnPlayersUpLV;
|
| | | treasureModel.treasureStateChangeEvent += treasureStateChangeEvent;
|
| | | treasureModel.treasureStageUpEvent += treasureStageUpEvent; |
| | | treasureModel.treasureStageUpEvent += treasureStageUpEvent;
|
| | | if (!IsJump)//是否经历跳转打开
|
| | | {
|
| | | m_ScaleTween.Play(false, IsOpen);
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && functionForecastConfig.OpenNumber-1 > featureNoticeModel.FunctionForecastIndex)
|
| | | bool Type = false;
|
| | | int NeedLv = 0;
|
| | | int playerLv = PlayerDatas.Instance.baseData.LV;
|
| | | if (functionForecastConfig.OpenNumber - 2 >= featureNoticeModel.FunctionForecastIndex)
|
| | | {
|
| | | Type = true;
|
| | | NeedLv = featureNoticeModel.GetOpenLv(functionForecastConfig.OpenNumber - 2);
|
| | | }
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && Type && NeedLv > playerLv)
|
| | | {
|
| | | m_Text_ShowA.gameObject.SetActive(false);
|
| | | m_TextShowB.gameObject.SetActive(false);
|
| | |
| | | UI3DModelExhibition.Instance.StopShowWing();
|
| | | UI3DTreasureExhibition.Instance.StopShow();
|
| | | var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(ClickFuncID);
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && functionForecastConfig.OpenNumber-1 > featureNoticeModel.FunctionForecastIndex)
|
| | | bool Type = false;
|
| | | int NeedLv = 0;
|
| | | int playerLv = PlayerDatas.Instance.baseData.LV;
|
| | | if (functionForecastConfig.OpenNumber - 2 >= featureNoticeModel.FunctionForecastIndex)
|
| | | {
|
| | | Type = true;
|
| | | NeedLv = featureNoticeModel.GetOpenLv(functionForecastConfig.OpenNumber - 2);
|
| | | }
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && Type && NeedLv > playerLv)
|
| | | {
|
| | | m_FeaturesImage.gameObject.SetActive(true);
|
| | | m_FeaturesImage.SetSprite("YGWENHAO");
|
| | |
| | | m_ButtonGoto.gameObject.SetActive(false);
|
| | | FuncOpenLVConfig funcoPenConfig = Config.Instance.Get<FuncOpenLVConfig>(funcID);
|
| | | var functionForecastConfig = Config.Instance.Get<FunctionForecastConfig>(ClickFuncID);
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && functionForecastConfig.OpenNumber-1 > featureNoticeModel.FunctionForecastIndex)
|
| | | bool Type = false;
|
| | | int NeedLv = 0;
|
| | | int playerLv = PlayerDatas.Instance.baseData.LV;
|
| | | if (functionForecastConfig.OpenNumber - 2 >= featureNoticeModel.FunctionForecastIndex)
|
| | | {
|
| | | Type = true;
|
| | | NeedLv = featureNoticeModel.GetOpenLv(functionForecastConfig.OpenNumber - 2);
|
| | | }
|
| | | if (!FuncOpen.Instance.IsFuncOpen(ClickFuncID) && Type && NeedLv > playerLv)
|
| | | {
|
| | | var functionForecastValue = Config.Instance.GetAllValues<FunctionForecastConfig>();
|
| | | string StrNanme = string.Empty;
|
| | | foreach (var value in functionForecastValue)
|
| | | {
|
| | | if (value.OpenNumber == functionForecastConfig.OpenNumber -2)
|
| | | if (value.OpenNumber == functionForecastConfig.OpenNumber - 2)
|
| | | {
|
| | | StrNanme = value.FuncName;
|
| | | } |
| | | }
|
| | | }
|
| | | m_TextUnopened.gameObject.SetActive(true);
|
| | | m_TextUnopened.text = string.Format(Language.Get("NextYGLimit"), StrNanme, functionForecastConfig.FuncName);
|
| | | m_TextUnopened.text = string.Format(Language.Get("NextYGLimit"), NeedLv, functionForecastConfig.FuncName);
|
| | | return;
|
| | | }
|
| | | if (funcoPenConfig.LimitMagicWeapon != 0 || funcoPenConfig.LimitMissionID != 0)
|
| | | if (funcoPenConfig.LimitMagicWeapon != 0 || funcoPenConfig.LimitMissionID != 0)
|
| | | {
|
| | | if (funcoPenConfig.LimitMagicWeapon != 0)//法宝
|
| | | {
|