private void ClickBtnGetToDo(Transform btnGet, int cellIndex) { RawInfo rawInfo = this.rawInfoList.get_Item(cellIndex); int acId = rawInfo.acId; if (!Activity7DayManager.Instance.activityInfos.ContainsKey(acId)) { DialogBoxUIViewModel.Instance.ShowAsConfirm(GameDataUtils.GetChineseContent(513193, false), GameDataUtils.GetChineseContent(513194, false), delegate { UIManagerControl.Instance.HideUI("OperateActivityUI"); UIStackManager.Instance.PopUIPrevious(UIType.FullScreen); }, GameDataUtils.GetNoticeText(102), "button_orange_1", null); return; } ActivityItemInfo activityItemInfo = Activity7DayManager.Instance.activityInfos.get_Item(acId); bool canGetFlag = activityItemInfo.canGetFlag; if (!activityItemInfo.hasGetPrize) { if (canGetFlag) { if (BackpackManager.Instance.ShowBackpackFull()) { return; } Activity7DayManager.Instance.SendGetActivityItemPrizeReq(2, acId); } else { SourceReferenceUI.GoTo((int)rawInfo.servletId); } } }
private void OnClickGoTo(GameObject go) { SourceReferenceUI.GoTo(this.data.go); }
private void OnClickButtonLink() { SourceReferenceUI.GoTo(this.jump); }
private void OnClickFromItem(GameObject sender) { SourceReferenceUI.GoTo(int.Parse(sender.get_name())); this.Show(false); }