| | |
| | | [SerializeField] Button WishingAwardImg;
|
| | | [SerializeField] Button MysticalPurchaseImg;
|
| | | [SerializeField] Button DungeonAssistImg;
|
| | | [SerializeField] RectTransform m_ContainerGotoGrabBoss;
|
| | | [SerializeField] RectTransform m_ContainerAdaptiveChat;
|
| | | [SerializeField] Button m_GotoFairyGrabBoss;
|
| | | [SerializeField] Button m_FlyToFairyGrabBoss;
|
| | |
|
| | |
| | | assistModel.UpdateRedpointEvent += UpdateDungeonAssistImag;
|
| | | purchaseModel.UpdateNewMysticalEvent += UpdateMysticalPurchaseImag;
|
| | | fairyGrabBossModel.gotoBossStateUpdate += ShowFairyGrabBoss;
|
| | | ChatTip.OnChatUpEvent += RefreshAdaptiveChat;
|
| | | }
|
| | |
|
| | | private void CompletionOfTaskEvent(int obj)
|
| | |
| | | {
|
| | | m_HighSettingTip.OnActived();
|
| | | IsShowTaskPanel();//是否显示任务面板
|
| | | RefreshAdaptiveChat();
|
| | | }
|
| | |
|
| | | IEnumerator Co_Load()
|
| | |
| | | RedpointCenter.Instance.redpointValueChangeEvent -= RedpointValueChangeEvent;
|
| | | NewBieCenter.Instance.guideBeginEvent -= GuideBeginEvent;
|
| | | fairyGrabBossModel.gotoBossStateUpdate -= ShowFairyGrabBoss;
|
| | | ChatTip.OnChatUpEvent -= RefreshAdaptiveChat;
|
| | | if (WindowCenter.Instance.IsOpen<FunctionForecastWin>())
|
| | | {
|
| | | WindowCenter.Instance.CloseImmediately<FunctionForecastWin>();
|
| | |
| | |
|
| | | private void ShowFairyGrabBoss()
|
| | | {
|
| | | m_GotoFairyGrabBoss.gameObject.SetActive(fairyGrabBossModel.cacheGotoBossId != 0 &&
|
| | | m_ContainerGotoGrabBoss.gameObject.SetActive(fairyGrabBossModel.cacheGotoBossId != 0 &&
|
| | | !fairyGrabBossModel.grabBossHintOpen);
|
| | | }
|
| | |
|
| | |
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | private void RefreshAdaptiveChat()
|
| | | {
|
| | | if (ChatTip.Inst == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | | m_ContainerAdaptiveChat.sizeDelta = m_ContainerAdaptiveChat.sizeDelta.SetY(
|
| | | ChatTip.Inst.IsChatUp ? ChatTip.Inst.chatHighSize.y : ChatTip.Inst.chatLowSize.y);
|
| | | }
|
| | | }
|
| | |
|
| | | }
|