Exemple #1
0
 public virtual void Initialize()
 {
     OnClick = new TypeObservable <int> ();
     cellButton.onClick.AddListener(() => {
         OnClick.Execute(0);
     });
 }
Exemple #2
0
 public void Initialize()
 {
     onBack = new TypeObservable <int>();
     back.onClick.AddListener(() => {
         onBack.Execute(0);
     });
 }
Exemple #3
0
 public void Initialize()
 {
     this.speakEndButton.onClick.AddListener(() => {
         // 最後まで表示される状態にする
         elapsedTimeFromStart = allContents.Length;
     });
     onEndConversation = new TypeObservable <int>();
     this.nextNortificationAndButton.onClick.AddListener(() => {
         onEndConversation.Execute(0);
     });
 }
Exemple #4
0
        public void ReceiveRewardAndShowModel()
        {
            // 報酬がなければ終了
            if (rewardModel.RewardAmounts.Count <= 0)
            {
                onEndReceiveObservable.Execute(0);
                return;
            }

            // 報酬を受け取り
            foreach (var rewardAmount in rewardModel.RewardAmounts)
            {
                rewardAmount.Receive();
            }

            // 報酬の受け取り
            this.showRewardWindow(rewardModel.RewardAmounts.Count);
        }