public void OnFirstRechargePush(short state, FirstRechargePush down = null) { if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (down != null) { this.State = down.flag; this.IsPayButRewardNoObtain = this.CheckIsPayButRewardNoObtain(); UIBase uIIfExist = UIManagerControl.Instance.GetUIIfExist("TownUI"); if (uIIfExist != null) { TownUI townUI = uIIfExist as TownUI; townUI.ControlSystemOpens(false, 9); } } }
public void OnDayGiftPush(short state, MinorLoginNty down = null) { if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (down != null) { this.State = down.minorLogin; this.IsCanGetDayGift = this.CheckIsCanGetDayGift(); this.DataInfo = down; UIBase uIIfExist = UIManagerControl.Instance.GetUIIfExist("TownUI"); if (uIIfExist != null) { TownUI townUI = uIIfExist as TownUI; townUI.ControlSystemOpens(false, 70); } } }