| | |
| | | |
| | | [SerializeField] Text callTip; |
| | | |
| | | //特权保底 |
| | | [SerializeField] Text openPrivilegeTip; |
| | | |
| | | public enum ResultState |
| | | { |
| | | single = 0, //单抽展示 |
| | |
| | | isSkip = LocalSave.GetBool(HeroUIManager.skipKey + PlayerDatas.Instance.baseData.PlayerID, false); |
| | | HappyXBModel.Instance.RefreshXBResultAct += UpdateState; |
| | | HappyXBModel.Instance.RefreshXBTypeInfoAct += RefreshBtn; |
| | | InvestModel.Instance.onInvestUpdate += OnInvestUpdate; |
| | | InitMoney(); |
| | | UpdateState(); |
| | | RefreshBtn(); |
| | | openPrivilegeTip.SetActive(!InvestModel.Instance.IsInvested(InvestModel.foreverCardType)); |
| | | } |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | | HappyXBModel.Instance.RefreshXBResultAct -= UpdateState; |
| | | HappyXBModel.Instance.RefreshXBTypeInfoAct -= RefreshBtn; |
| | | InvestModel.Instance.onInvestUpdate -= OnInvestUpdate; |
| | | } |
| | | |
| | | void OnInvestUpdate(int type) |
| | | { |
| | | openPrivilegeTip.SetActive(!InvestModel.Instance.IsInvested(InvestModel.foreverCardType)); |
| | | } |
| | | |
| | | void UpdateState() |
| | | { |