Exemplo n.º 1
0
        public override void SetRewardAmount(IRewardAmount rewardAmount)
        {
            var onegaiRewardAmount = rewardAmount as OnegaiRewardAmount;

            Debug.Assert(onegaiRewardAmount != null, "onegaiRewardAmountがnullです");
            this.playerOnegaiModel = this.playerOegaiRepository.GetById(onegaiRewardAmount.OnegaiId);
            this.rewardOnegaiView.UpdateView(this.playerOnegaiModel.OnegaiModel.Title);
        }
Exemplo n.º 2
0
        public override void SetRewardAmount(IRewardAmount rewardAmount)
        {
            var monoRewardAmount = rewardAmount as MonoRewardAmount;

            Debug.Assert(monoRewardAmount != null, "MonoRewardAmountがnullです");
            this.monoInfoModel = this.monoInfoRepository.Get(monoRewardAmount.MonoInfoId);
            this.rewardMonoInfoView.UpdateView(this.monoInfoModel.Name);
        }
Exemplo n.º 3
0
 private RewardWindowPresenterBase GetRewardWindowPresenterBase(IRewardAmount rewardAmount)
 {
     if (rewardAmount.RewardType == RewardType.Onegai)
     {
         return(GameManager.Instance.GameUIManager.RewardOnegaiPresenter);
     }
     if (rewardAmount.RewardType == RewardType.Mono)
     {
         return(GameManager.Instance.GameUIManager.RewardMonoInfoPresenter);
     }
     return(GameManager.Instance.GameUIManager.RewardPresenter);
 }
Exemplo n.º 4
0
 public override void onPrepareClose()
 {
     Debug.Assert(rewardAmount != null, "報酬がありません");
     this.rewardAmount = null;
 }
Exemplo n.º 5
0
 public override void SetRewardAmount(IRewardAmount rewardAmount)
 {
     Debug.Assert(rewardAmount != null, "報酬がありません");
     this.rewardAmount = rewardAmount;
 }
Exemplo n.º 6
0
 private void Awake()
 {
     this.rewardAmount = RewardGenerator.InValidReward;
 }
Exemplo n.º 7
0
 public abstract void SetRewardAmount(IRewardAmount rewardAmount);