示例#1
0
        public SignInRewardGotDialogContext(GetSignInRewardRsp rsp, int times = 1)
        {
            ContextPattern pattern = new ContextPattern {
                contextName    = "SignInRewardGotDialogContext",
                viewPrefabPath = "UI/Menus/Dialog/SignInRewardGotDialog"
            };

            base.config           = pattern;
            this._signInRewardRsp = rsp;
            this._signInTimes     = times;
        }
示例#2
0
        private bool OnGetSignInRewardRsp(GetSignInRewardRsp rsp)
        {
            if (rsp.get_retcode() == null)
            {
                SignInRewardGotDialogContext dialogContext = new SignInRewardGotDialogContext(rsp, (int)this._signInRewardStatus.get_next_sign_in_day());
                dialogContext.RegisterCallBack(new SignInRewardGotDialogContext.OnDialogDestroy(this.OnRewardGotConfirm));
                Singleton <MainUIManager> .Instance.ShowDialog(dialogContext, UIType.Any);

                Singleton <NetworkManager> .Instance.RequestGetSignInRewardStatus();
            }
            else
            {
                this.Destroy();
            }
            return(false);
        }