| | |
| | | using System; |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using UnityEngine; |
| | | using Cysharp.Threading.Tasks; |
| | | using UnityEngine.UI; |
| | | |
| | | /// <summary> |
| | |
| | | //策划改变需求 暂时关闭 |
| | | // scoreBtn.AddListener(() => |
| | | // { |
| | | // UIManager.Instance.OpenWindow<HeroCallScoreWin>(); |
| | | // UIManager.Instance.OpenWindowAsync<HeroCallScoreWin>().Forget(); |
| | | // }); |
| | | |
| | | ruleBtn.AddListener(() => |
| | | { |
| | | UIManager.Instance.OpenWindow<HeroCallRuleWin>(); |
| | | UIManager.Instance.OpenWindowAsync<HeroCallRuleWin>().Forget(); |
| | | }); |
| | | } |
| | | |
| | |
| | | HappyXBModel.Instance.RefreshXBTypeInfoAct += Refresh; |
| | | InvestModel.Instance.onInvestUpdate += OnInvestUpdate; |
| | | TimingGiftManager.Instance.OnShowGiftIdListAddEvent += OnShowGiftIdListAddEvent; |
| | | timingGiftCell.InitUI(); |
| | | timingGiftCell.InitUI().Forget(); |
| | | skipToggle.isOn = LocalSave.GetBool(HeroUIManager.skipKey + PlayerDatas.Instance.baseData.PlayerID, false); |
| | | Refresh(); |
| | | openPrivilegeTip.SetActive(!InvestModel.Instance.IsInvested(InvestModel.foreverCardType)); |
| | |
| | | |
| | | private void OnShowGiftIdListAddEvent() |
| | | { |
| | | timingGiftCell.InitUI(); |
| | | timingGiftCell.InitUI().Forget(); |
| | | } |
| | | |
| | | void OnInvestUpdate(int type) |