Example #1
0
        public override void Init(BasePopupModel baseModel)
        {
            _model = baseModel as InviteFriendPopupModel;
            Assert.IsNotNull(_model, "BasePopupModel is not InviteFriendPopupModel");

            _model.closeCallback = CloseCallback;
            _view.Init(_model);
        }
Example #2
0
        public void Init(InviteFriendPopupModel model)
        {
            _model = model;
            _inviteMessageObj.SetActive(false);

            _idUser.text = playerController.GetUserId().ToString();
            //_rewardAmount.text = $"${rewardBucks:F2}";

            _closeDisposable?.Dispose();
            _closeDisposable = _closeButton.OnClickAsObservable().Subscribe(_ => OnClickCloseButton());

            _copyDisposable?.Dispose();
            _copyDisposable = _copyCodeBtn.OnClickAsObservable().Subscribe(_ => OnClickCopyCodeBtn(playerController.GetUserId().ToString()));
        }