示例#1
0
    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);
            }
        }
    }
示例#2
0
 private void OnClickGoTo(GameObject go)
 {
     SourceReferenceUI.GoTo(this.data.go);
 }
示例#3
0
 private void OnClickButtonLink()
 {
     SourceReferenceUI.GoTo(this.jump);
 }
示例#4
0
 private void OnClickFromItem(GameObject sender)
 {
     SourceReferenceUI.GoTo(int.Parse(sender.get_name()));
     this.Show(false);
 }