| | |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | /// </summary> |
| | | public class HeroCallWin : UIBase |
| | | { |
| | | [SerializeField] TimingGiftCell timingGiftCell; |
| | | [SerializeField] Button ruleBtn; |
| | | [SerializeField] OwnItemCell ownItemCell; |
| | | [SerializeField] Button scoreBtn; |
| | |
| | | |
| | | HappyXBModel.Instance.RefreshXBTypeInfoAct += Refresh; |
| | | InvestModel.Instance.onInvestUpdate += OnInvestUpdate; |
| | | TimingGiftManager.Instance.OnShowGiftIdListAddEvent += OnShowGiftIdListAddEvent; |
| | | timingGiftCell.InitUI(); |
| | | skipToggle.isOn = LocalSave.GetBool(HeroUIManager.skipKey + PlayerDatas.Instance.baseData.PlayerID, false); |
| | | Refresh(); |
| | | openPrivilegeTip.SetActive(!InvestModel.Instance.IsInvested(InvestModel.foreverCardType)); |
| | |
| | | { |
| | | HappyXBModel.Instance.RefreshXBTypeInfoAct -= Refresh; |
| | | InvestModel.Instance.onInvestUpdate -= OnInvestUpdate; |
| | | TimingGiftManager.Instance.OnShowGiftIdListAddEvent -= OnShowGiftIdListAddEvent; |
| | | } |
| | | |
| | | private void OnShowGiftIdListAddEvent() |
| | | { |
| | | timingGiftCell.InitUI(); |
| | | } |
| | | |
| | | void OnInvestUpdate(int type) |