コード例 #1
0
        private void Awake()
        {
            sliderAnimator.OnSliderChange
            .Subscribe(_ => OnSliderChange())
            .AddTo(gameObject);
            sliderAnimator.SetMaxValue(States.Instance.GameConfigState.ActionPointMax);
            sliderAnimator.SetValue(0f, false);

            GameConfigStateSubject.GameConfigState
            .Subscribe(state => sliderAnimator.SetMaxValue(state.ActionPointMax))
            .AddTo(gameObject);
        }
コード例 #2
0
        private void Awake()
        {
            sliderAnimator.OnSliderChange
            .Subscribe(_ => OnSliderChange())
            .AddTo(gameObject);
            sliderAnimator.SetMaxValue(States.Instance.GameConfigState.DailyRewardInterval);
            sliderAnimator.SetValue(0f, false);

            GameConfigStateSubject.GameConfigState
            .Subscribe(state => sliderAnimator.SetMaxValue(state.DailyRewardInterval))
            .AddTo(gameObject);
        }