예제 #1
0
    //领取奖励回调
    public void showAwardInfo()
    {
        UiManager.Instance.createPrizeMessageLintWindow(prize);
        if (!isStorageFull(prize))
        {
            UiManager.Instance.openDialogWindow <MessageLineWindow>((win) => {
                win.Initialize(LanguageConfigManager.Instance.getLanguage("signInTips1"));
            });
        }
        if (card != null)
        {
            if (HeroRoadManagerment.Instance.activeHeroRoadIfNeed(card))
            {
                StartCoroutine(Utils.DelayRun(() => {
                    UiManager.Instance.openDialogWindow <TextTipWindow>((win) => {
                        win.init(LanguageConfigManager.Instance.getLanguage("s0418"), 0.8f);
                    });
                }, 0.7f));
            }
        }
        //刷新界面
        needSignFlag.gameObject.SetActive(false);
        signedInFlag.gameObject.SetActive(true);
        signState = NoticeActivitySignInContent.SIGN_IN_YES;
        if (qualityEffectPoint != null)
        {
            if (qualityEffectPoint.transform.childCount > 0)
            {
                Utils.RemoveAllChild(qualityEffectPoint.transform);
            }
        }
        GetSignInInfoFport fport = FPortManager.Instance.getFPort("GetSignInInfoFport") as GetSignInInfoFport;

        fport.getSignInInfo(signContent.updateUI);
    }
    public void initButton()
    {
        buttonAllSignAward.fatherWindow = win;
        buttonAllSignAward.onClickEvent = getAllSignAward;
        GetSignInInfoFport fport = FPortManager.Instance.getFPort("GetSignInInfoFport") as GetSignInInfoFport;

        fport.getSignInInfo(loadPrize);
    }