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); }
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); }