Beispiel #1
0
 private void AddEvent(VoiceSetting.SetData data)
 {
     ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)data.toggle.onValueChanged), (Action <M0>)(isOn =>
     {
         data.sd.Mute = isOn;
         ((Behaviour)data.image).set_enabled(!isOn);
         this.EnterSE();
     }));
     UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>)Observable.Select <bool, bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(data.toggle), (Func <M0, M1>)(b => !b)), (Selectable)data.slider);
     ObservableExtensions.Subscribe <int>((IObservable <M0>)Observable.Select <float, int>(UnityEventExtensions.AsObservable <float>((UnityEvent <M0>)data.slider.get_onValueChanged()), (Func <M0, M1>)(value => (int)value)), (Action <M0>)(value => data.sd.Volume = value));
     ObservableExtensions.Subscribe <PointerEventData>(Observable.Where <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerDownAsObservable((UIBehaviour)data.slider), (Func <M0, bool>)(_ => Input.GetMouseButtonDown(0))), (Action <M0>)(_ => this.EnterSE()));
 }
Beispiel #2
0
 private void InitLink(SoundSetting.SoundGroup sg, SoundData sd, bool isSliderEvent)
 {
     this.LinkToggle(sg.toggle, (Action <bool>)(isOn => sd.Mute = isOn));
     ObservableExtensions.Subscribe <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>)sg.toggle.onValueChanged), (Action <M0>)(isOn => ((Behaviour)sg.image).set_enabled(!isOn)));
     UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>)Observable.Select <bool, bool>((IObservable <M0>)UnityUIComponentExtensions.OnValueChangedAsObservable(sg.toggle), (Func <M0, M1>)(b => !b)), (Selectable)sg.slider);
     if (isSliderEvent)
     {
         this.LinkSlider(sg.slider, (Action <float>)(value => sd.Volume = (int)value));
     }
     else
     {
         ObservableExtensions.Subscribe <PointerEventData>(Observable.Where <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerDownAsObservable((UIBehaviour)sg.slider), (Func <M0, bool>)(_ => Input.GetMouseButtonDown(0))), (Action <M0>)(_ => this.EnterSE()));
     }
 }
        protected virtual void Start()
        {
            if (Object.op_Inequality((Object)this._nameLabel, (Object)null))
            {
                UnityUIComponentExtensions.SubscribeToText((IObservable <string>) this._name, this._nameLabel);
            }
            if (Object.op_Inequality((Object)this._successLabel, (Object)null))
            {
                UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>) this._isSuccess, (Selectable)this._button);
                UnityUIComponentExtensions.SubscribeToText <bool>((IObservable <M0>) this._isSuccess, this._successLabel, (Func <M0, string>)(success => success ? "OK!" : string.Empty));
                ObservableExtensions.Subscribe <bool>((IObservable <M0>) this._isSuccess, (System.Action <M0>)(success => ((Graphic)this._successLabel).set_color(Define.Get(!success ? Colors.White : Colors.Blue))));
            }
            EasingFunction easing;

            if (!Tween.MotionFunctionTable.TryGetValue(this._motionType, ref easing))
            {
                ;
            }
            if (!Tween.MotionFunctionTable.TryGetValue(this._alphaMotionType, ref easing))
            {
                return;
            }
            DisposableExtensions.AddTo <IDisposable>((M0)ObservableExtensions.Subscribe <TimeInterval <float> >((IObservable <M0>)Observable.FrameTimeInterval <float>((IObservable <M0>)ObservableEasing.Create(easing, this._easingDuration, true), true), (System.Action <M0>)(x => this._canvasGroup.set_alpha(Mathf.Lerp(this._fromAlpha, this._toAlpha, ((TimeInterval <float>) ref x).get_Value())))), (ICollection <IDisposable>) this.disposables);
        }
        private void StartLoad()
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            TitleLoadScene.\u003CStartLoad\u003Ec__AnonStorey1 loadCAnonStorey1 = new TitleLoadScene.\u003CStartLoad\u003Ec__AnonStorey1();
            // ISSUE: reference to a compiler-generated field
            loadCAnonStorey1.\u0024this = this;
            // ISSUE: reference to a compiler-generated field
            loadCAnonStorey1.isAutoFileExists = Singleton <Game> .Instance.Data.AutoData != null;
            // ISSUE: reference to a compiler-generated field
            this.infoAutoItem.objSave.SetActiveIfDifferent(loadCAnonStorey1.isAutoFileExists);
            // ISSUE: reference to a compiler-generated field
            this.infoAutoItem.objInitialize.SetActiveIfDifferent(!loadCAnonStorey1.isAutoFileExists);
            // ISSUE: reference to a compiler-generated field
            if (loadCAnonStorey1.isAutoFileExists)
            {
                this.infoAutoItem.txtTitle.set_text(Singleton <Game> .Instance.Data.AutoData.Name);
                this.infoAutoItem.txtDay.set_text(Singleton <Game> .Instance.Data.AutoData.SaveTime.ToShortDateString());
                this.infoAutoItem.txtTime.set_text(Singleton <Game> .Instance.Data.AutoData.SaveTime.ToLongTimeString());
            }
            // ISSUE: reference to a compiler-generated field
            ((Selectable)this.infoAutoItem.btnEntry).set_interactable(loadCAnonStorey1.isAutoFileExists);
            // ISSUE: reference to a compiler-generated field
            this.infoAutoItem.isData = loadCAnonStorey1.isAutoFileExists;
            this.infoAutoItem.num    = 0;
            // ISSUE: method pointer
            this.infoAutoItem.action.listActionEnter.Add(new UnityAction((object)loadCAnonStorey1, __methodptr(\u003C\u003Em__0)));
            // ISSUE: method pointer
            this.infoAutoItem.action.listActionExit.Add(new UnityAction((object)loadCAnonStorey1, __methodptr(\u003C\u003Em__1)));
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.infoAutoItem.btnEntry), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__2));
            // ISSUE: reference to a compiler-generated method
            UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>)ObserveExtensions.ObserveEveryValueChanged <TitleLoadScene, bool>((M0)this, (Func <M0, M1>) new Func <TitleLoadScene, bool>(loadCAnonStorey1.\u003C\u003Em__3), (FrameCountType)0, false), (Selectable)this.infoAutoItem.btnEntry);
            this.lstSaveInfo.Clear();
            this.lstSaveInfo.Add(this.infoAutoItem);
            List <Transform> transformList = new List <Transform>();

            for (int index = 0; index < this.objSaveContentParent.get_transform().get_childCount(); ++index)
            {
                transformList.Add(this.objSaveContentParent.get_transform().GetChild(index));
            }
            this.objSaveContentParent.get_transform().DetachChildren();
            using (List <Transform> .Enumerator enumerator = transformList.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    Object.Destroy((Object)enumerator.Current);
                }
            }
            for (int key = 0; key < this.drawFileNum; ++key)
            {
                // ISSUE: object of a compiler-generated type is created
                // ISSUE: variable of a compiler-generated type
                TitleLoadScene.\u003CStartLoad\u003Ec__AnonStorey2 loadCAnonStorey2 = new TitleLoadScene.\u003CStartLoad\u003Ec__AnonStorey2();
                // ISSUE: reference to a compiler-generated field
                loadCAnonStorey2.\u003C\u003Ef__ref\u00241 = loadCAnonStorey1;
                GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.nodeSaveButton);
                gameObject.get_transform().SetParent(this.objSaveContentParent.get_transform(), false);
                // ISSUE: reference to a compiler-generated field
                loadCAnonStorey2.info = (TitleSaveItemInfo)gameObject.GetComponent <TitleSaveItemInfo>();
                // ISSUE: reference to a compiler-generated field
                if (!Object.op_Implicit((Object)loadCAnonStorey2.info))
                {
                    Object.Destroy((Object)gameObject);
                }
                else
                {
                    // ISSUE: reference to a compiler-generated field
                    loadCAnonStorey2.isFileExists = Singleton <Game> .Instance.Data.WorldList.ContainsKey(key);

                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: reference to a compiler-generated field
                    loadCAnonStorey2.info.objSave.SetActiveIfDifferent(loadCAnonStorey2.isFileExists);
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: reference to a compiler-generated field
                    loadCAnonStorey2.info.objInitialize.SetActiveIfDifferent(!loadCAnonStorey2.isFileExists);
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: reference to a compiler-generated field
                    loadCAnonStorey2.info.isData = loadCAnonStorey2.isFileExists;
                    // ISSUE: reference to a compiler-generated field
                    loadCAnonStorey2.info.num = key + 1;
                    // ISSUE: reference to a compiler-generated field
                    if (loadCAnonStorey2.isFileExists)
                    {
                        WorldData world = Singleton <Game> .Instance.Data.WorldList[key];
                        // ISSUE: reference to a compiler-generated field
                        loadCAnonStorey2.info.txtTitle.set_text(world.Name);
                        // ISSUE: reference to a compiler-generated field
                        loadCAnonStorey2.info.txtDay.set_text(world.SaveTime.ToShortDateString());
                        // ISSUE: reference to a compiler-generated field
                        loadCAnonStorey2.info.txtTime.set_text(world.SaveTime.ToLongTimeString());
                    }
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    loadCAnonStorey2.info.action.listActionEnter.Add(new UnityAction((object)loadCAnonStorey2, __methodptr(\u003C\u003Em__0)));
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: method pointer
                    loadCAnonStorey2.info.action.listActionExit.Add(new UnityAction((object)loadCAnonStorey2, __methodptr(\u003C\u003Em__1)));
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: reference to a compiler-generated method
                    ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(loadCAnonStorey2.info.btnEntry), (Action <M0>) new Action <Unit>(loadCAnonStorey2.\u003C\u003Em__2));
                    // ISSUE: reference to a compiler-generated field
                    UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>)ObserveExtensions.ObserveEveryValueChanged <TitleLoadScene, bool>((M0)this, (Func <M0, M1>)(_ => !Singleton <Scene> .Instance.IsNowLoadingFade), (FrameCountType)0, false), (Selectable)loadCAnonStorey2.info.btnEntry);
                    // ISSUE: reference to a compiler-generated field
                    this.lstSaveInfo.Add(loadCAnonStorey2.info);
                }
            }
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnLoadUIClose), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__4));
            ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.btnLoadUIClose), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select)));
            IObservable <Unit> observable1 = (IObservable <Unit>)Observable.Where <Unit>(Observable.Where <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((UnityEngine.Component) this), (Func <M0, bool>)(_ => Object.op_Equality((Object)Singleton <Game> .Instance.ExitScene, (Object)null) && Object.op_Equality((Object)Singleton <Game> .Instance.Config, (Object)null))), (Func <M0, bool>)(_ => !Singleton <Scene> .Instance.IsNowLoadingFade));
            IObservable <Unit> observable2 = (IObservable <Unit>)Observable.Where <Unit>((IObservable <M0>)observable1, (Func <M0, bool>)(_ => Input.GetMouseButtonDown(1)));

            // ISSUE: reference to a compiler-generated method
            // ISSUE: reference to a compiler-generated method
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>(Observable.Where <Unit>((IObservable <M0>)observable2, (Func <M0, bool>) new Func <Unit, bool>(loadCAnonStorey1.\u003C\u003Em__5)), (Func <M0, bool>) new Func <Unit, bool>(loadCAnonStorey1.\u003C\u003Em__6)), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__7));
            // ISSUE: reference to a compiler-generated method
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)observable2, (Func <M0, bool>) new Func <Unit, bool>(loadCAnonStorey1.\u003C\u003Em__8)), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__9));
            // ISSUE: reference to a compiler-generated method
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)observable2, (Func <M0, bool>) new Func <Unit, bool>(loadCAnonStorey1.\u003C\u003Em__A)), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__B));
            // ISSUE: reference to a compiler-generated method
            // ISSUE: reference to a compiler-generated method
            ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>(Observable.Where <Unit>((IObservable <M0>)observable1, (Func <M0, bool>) new Func <Unit, bool>(loadCAnonStorey1.\u003C\u003Em__C)), (Func <M0, bool>)(_ => Input.GetKeyDown((KeyCode)(int)sbyte.MaxValue))), (Action <M0>) new Action <Unit>(loadCAnonStorey1.\u003C\u003Em__D));
        }
Beispiel #5
0
 public void Start()
 {
     if (this.IsStartUp)
     {
         return;
     }
     this.InitCharaList(true);
     if (Object.op_Implicit((Object)this.btnEntry))
     {
         ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnEntry), (Func <M0, bool>)(_ => !Singleton <Scene> .Instance.IsNowLoadingFade)), (Action <M0>)(_ =>
         {
             if (this.onLoadItemFunc != null)
             {
                 this.onLoadItemFunc(this.listCtrl.GetNowSelectCard());
             }
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_L);
         }));
     }
     // ISSUE: method pointer
     this.actionEntry.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__2)));
     // ISSUE: method pointer
     this.actionEntry.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__3)));
     this.UpdateWindow(this.windowType, true, false);
     if (Object.op_Implicit((Object)this.tglMale))
     {
         ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this.tglMale.onValueChanged), (Func <M0, bool>)(_ => this.selectSex != 0)), (Action <M0>)(_isOn =>
         {
             if (!_isOn)
             {
                 return;
             }
             this.selectSex = 0;
             this.CreateCharaList(this.lstMaleCharaFileInfo, false);
             this.listCtrl.SetNowSelectToggle();
             if (this.listCtrl.GetNowSelectCard() != null)
             {
                 this.listCtrl.SetParameterWindowVisible(true);
             }
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
         }));
         ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.tglMale), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select)));
     }
     if (Object.op_Implicit((Object)this.tglFemale))
     {
         ObservableExtensions.Subscribe <bool>(Observable.Where <bool>(UnityEventExtensions.AsObservable <bool>((UnityEvent <M0>) this.tglFemale.onValueChanged), (Func <M0, bool>)(_ => this.selectSex != 1)), (Action <M0>)(_isOn =>
         {
             if (!_isOn)
             {
                 return;
             }
             this.selectSex = 1;
             this.CreateCharaList(this.lstFemaleCharaFileInfo, false);
             this.listCtrl.SetNowSelectToggle();
             if (this.listCtrl.GetNowSelectCard() != null)
             {
                 this.listCtrl.SetParameterWindowVisible(true);
             }
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
         }));
         ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.tglFemale), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select)));
     }
     if (Object.op_Implicit((Object)this.btnCharacterCreation))
     {
         ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnCharacterCreation), (Func <M0, bool>)(_ => !Singleton <Scene> .Instance.IsNowLoadingFade)), (Action <M0>)(_ =>
         {
             if (this.onCharaCreateClickAction != null)
             {
                 this.onCharaCreateClickAction(this.selectSex);
             }
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_L);
         }));
         ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.btnCharacterCreation), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select)));
         ((UnityEngine.Component) this.btnCharacterCreation).get_gameObject().SetActiveIfDifferent(!this._hideCharacterCreation);
     }
     // ISSUE: method pointer
     this.actionFemaleSelect.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__D)));
     // ISSUE: method pointer
     this.actionFemaleSelect.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__E)));
     // ISSUE: method pointer
     this.actionMaleSelect.listActionEnter.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__F)));
     // ISSUE: method pointer
     this.actionMaleSelect.listActionExit.Add(new UnityAction((object)this, __methodptr(\u003CStart\u003Em__10)));
     this.selectReactive = new BoolReactiveProperty(false);
     UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>) this.selectReactive, (Selectable)this.btnEntry);
     this.listCtrl.onChangeItem = (Action <bool>)(_isOn => ((ReactiveProperty <bool>) this.selectReactive).set_Value(_isOn));
     ObservableExtensions.Subscribe <Unit>(Observable.Where <Unit>(Observable.Where <Unit>((IObservable <M0>)ObservableTriggerExtensions.UpdateAsObservable((UnityEngine.Component) this), (Func <M0, bool>)(_ => Input.GetMouseButtonUp(1))), (Func <M0, bool>)(_ => !Singleton <Scene> .Instance.IsNowLoadingFade)), (Action <M0>)(_ =>
     {
         if (this.onClickRightFunc == null)
         {
             return;
         }
         this.onClickRightFunc();
     }));
     if (Object.op_Implicit((Object)this.btnClose))
     {
         ObservableExtensions.Subscribe <Unit>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(this.btnClose), (Action <M0>)(_ =>
         {
             Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Cancel);
             if (this.onCloseWindowFunc == null)
             {
                 return;
             }
             this.onCloseWindowFunc();
         }));
         ObservableExtensions.Subscribe <PointerEventData>((IObservable <M0>)ObservableTriggerExtensions.OnPointerEnterAsObservable((UIBehaviour)this.btnClose), (Action <M0>)(_ => Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.Select)));
         ((UnityEngine.Component) this.btnClose).get_gameObject().SetActiveIfDifferent(!this._hideClose);
     }
     this.IsStartUp = true;
 }
Beispiel #6
0
        private void Start()
        {
            ReadOnlyReactiveProperty <bool> reactiveProperty1 = (ReadOnlyReactiveProperty <bool>)ReactivePropertyExtensions.ToReadOnlyReactiveProperty <bool>((IObservable <M0>)Observable.Select <int, bool>((IObservable <M0>) this._count, (Func <M0, M1>)(i => i > 1)));
            ReadOnlyReactiveProperty <bool> reactiveProperty2 = (ReadOnlyReactiveProperty <bool>)ReactivePropertyExtensions.ToReadOnlyReactiveProperty <bool>((IObservable <M0>)Observable.Select <int, bool>((IObservable <M0>) this._count, (Func <M0, M1>)(i => i < this.MaxCount)));
            List <IObservable <int> >       source            = new List <IObservable <int> >();

            // ISSUE: object of a compiler-generated type is created
            using (IEnumerator <\u003C\u003E__AnonType27 <Button, int> > enumerator = ((IEnumerable <Button>) this._addButtons).Select <Button, \u003C\u003E__AnonType27 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType27 <Button, int> >)((bt, index) => new \u003C\u003E__AnonType27 <Button, int>(bt, index != 0 ? index * 10 : 1))).Where <\u003C\u003E__AnonType27 <Button, int> >((Func <\u003C\u003E__AnonType27 <Button, int>, bool>)(bt => bt != null)).GetEnumerator())
            {
                while (((IEnumerator)enumerator).MoveNext())
                {
                    // ISSUE: variable of a compiler-generated type
                    \u003C\u003E__AnonType27 <Button, int> item = enumerator.Current;
                    UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>)reactiveProperty2, (Selectable)item.bt);
                    source.Add((IObservable <int>)Observable.Select <Unit, int>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.bt), (Func <M0, M1>)(_ => item.add)));
                }
            }
            // ISSUE: object of a compiler-generated type is created
            using (IEnumerator <\u003C\u003E__AnonType27 <Button, int> > enumerator = ((IEnumerable <Button>) this._subButtons).Select <Button, \u003C\u003E__AnonType27 <Button, int> >((Func <Button, int, \u003C\u003E__AnonType27 <Button, int> >)((bt, index) => new \u003C\u003E__AnonType27 <Button, int>(bt, index != 0 ? index * 10 : 1))).Where <\u003C\u003E__AnonType27 <Button, int> >((Func <\u003C\u003E__AnonType27 <Button, int>, bool>)(bt => bt != null)).GetEnumerator())
            {
                while (((IEnumerator)enumerator).MoveNext())
                {
                    // ISSUE: variable of a compiler-generated type
                    \u003C\u003E__AnonType27 <Button, int> item = enumerator.Current;
                    UnityUIComponentExtensions.SubscribeToInteractable((IObservable <bool>)reactiveProperty1, (Selectable)item.bt);
                    source.Add((IObservable <int>)Observable.Select <Unit, int>((IObservable <M0>)UnityUIComponentExtensions.OnClickAsObservable(item.bt), (Func <M0, M1>)(_ => - item.add)));
                }
            }
            if (source.Any <IObservable <int> >())
            {
                ObservableExtensions.Subscribe <int>((IObservable <M0>)Observable.Select <int, int>(Observable.Merge <int>((IEnumerable <IObservable <M0> >)source), (Func <M0, M1>)(value => Mathf.Clamp(((ReactiveProperty <int>) this._count).get_Value() + value, 1, this.MaxCount))), (Action <M0>)(value =>
                {
                    ((ReactiveProperty <int>) this._count).set_Value(value);
                    Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
                }));
            }
            if (!Object.op_Inequality((Object)this._inputCounter, (Object)null))
            {
                return;
            }
            ObservableExtensions.Subscribe <int>((IObservable <M0>) this._count, (Action <M0>)(i => this._inputCounter.set_text(i.ToString())));
            ObservableExtensions.Subscribe <BaseEventData>(Observable.Take <BaseEventData>((IObservable <M0>)ObservableTriggerExtensions.OnSelectAsObservable((UIBehaviour)this._inputCounter), 1), (Action <M0>)(_ =>
            {
                Transform transform = ((Component)this._inputCounter).get_transform().Find(((Object)this._inputCounter).get_name() + " Input Caret");
                if (!Object.op_Inequality((Object)transform, (Object)null))
                {
                    return;
                }
                RectTransform component     = (RectTransform)((Component)transform).GetComponent <RectTransform>();
                RectTransform rectTransform = ((Graphic)this._countText).get_rectTransform();
                component.set_anchoredPosition(rectTransform.get_anchoredPosition());
                component.set_sizeDelta(rectTransform.get_sizeDelta());
            }));
            ObservableExtensions.Subscribe <int>((IObservable <M0>)Observable.Select <string, int>((IObservable <M0>)UnityUIComponentExtensions.OnEndEditAsObservable(this._inputCounter), (Func <M0, M1>)(text =>
            {
                int result;
                int.TryParse(text, out result);
                return(Mathf.Clamp(result, 1, this.MaxCount));
            })), (Action <M0>)(n =>
            {
                ((ReactiveProperty <int>) this._count).SetValueAndForceNotify(n);
                Singleton <Resources> .Instance.SoundPack.Play(SoundPack.SystemSE.OK_S);
            }));
        }