예제 #1
0
 public void Initialize()
 {
     this.OnBackObservable = new TypeObservable <int>();
     this.back.onClick.AddListener(() => {
         this.OnBackObservable.Execute(0);
     });
 }
예제 #2
0
 public void Initialize()
 {
     this.onNextObservable = new TypeObservable <int>();
     this.toNext.onClick.AddListener(() => {
         this.onNextObservable.Execute(0);
     });
 }
예제 #3
0
 public void Initialize()
 {
     onBack = new TypeObservable <int>();
     back.onClick.AddListener(() => {
         onBack.Execute(0);
     });
 }
예제 #4
0
 public virtual void Initialize()
 {
     OnClick = new TypeObservable <int> ();
     cellButton.onClick.AddListener(() => {
         OnClick.Execute(0);
     });
 }
예제 #5
0
 public void Initialize()
 {
     this.OnClickCloseObservable = new TypeObservable <int>();
     this.closeButton.onClick.AddListener(() => {
         this.OnClickCloseObservable.Execute(0);
     });
 }
 public void Initialize(Camera mainCamera)
 {
     this.mainCanvas.worldCamera = mainCamera;
     this.OnCancelObservable     = new TypeObservable <int>();
     this.onCancel.onClick.AddListener(() => {
         this.OnCancelObservable.Execute(0);
     });
 }
예제 #7
0
 public void Initialize()
 {
     this.speakEndButton.onClick.AddListener(() => {
         // 最後まで表示される状態にする
         elapsedTimeFromStart = allContents.Length;
     });
     onEndConversation = new TypeObservable <int>();
     this.nextNortificationAndButton.onClick.AddListener(() => {
         onEndConversation.Execute(0);
     });
 }
예제 #8
0
 public override void Initialize()
 {
     base.Initialize();
     this.onClickDetail = new TypeObservable <int>();
     this.onClickLock   = new TypeObservable <int>();
     this.detailButton.onClick.AddListener(() => {
         this.onClickDetail.Execute(0);
     });
     this.releaseLock.onClick.AddListener(() => {
         this.onClickLock.Execute(0);
     });
 }
예제 #9
0
        public void Initialize()
        {
            // init
            this.conversationView.Initialize();
            this.onEndConversation = new TypeObservable <int>();

            // end conversation event
            this.disposables.Add(this.conversationView.OnEndConversation.Subscribe(_ => {
                if (currentConversationModel.IsLastIndex(this.currentConversationIndex))
                {
                    this.Close();
                    this.onEndConversation.Execute(0);
                    return;
                }
                this.currentConversationIndex++;
                this.SetConversationIndex(this.currentConversationIndex);
            }));

            // initialize close
            this.Close();
        }
예제 #10
0
 private void Awake()
 {
     this.onMouseSelet = new TypeObservable <int> ();
 }
예제 #11
0
 private void Awake()
 {
     this.onSelect = new TypeObservable <int> ();
 }
예제 #12
0
 public void Initialize()
 {
     this.onCellClick = new TypeObservable <PlayerOnegaiModel>();
 }
예제 #13
0
 public StateManager(IState currentState)
 {
     this.OnChangeStateObservable = new TypeObservable <IState>();
     this.currentState            = currentState;
     this.currentState.onEnter();
 }