public void IAnimatedBarLogic_OnStartAnimation(float beforeFillAmount_0_1, float AfterfillAmount_0_1, AnimatedBar.EDirection direction) { if (direction == AnimatedBar.EDirection.Increase) { return; } if (_remainTime <= 0f) { _image.fillAmount = beforeFillAmount_0_1; } _remainTime = duration; _currentColor = animateColor; _image.gameObject.SetActive(true); _image.color = _currentColor; }
public void IAnimatedBarLogic_OnStartAnimation(float beforeFillAmount_0_1, float afterFillAmount_0_1, AnimatedBar.EDirection direction) { _remainTime = duration; _offsetAmount = afterFillAmount_0_1 - beforeFillAmount_0_1; _image.enabled = true; _image.fillAmount = beforeFillAmount_0_1; }