Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using DG.Tweening;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public abstract class Bar : MonoBehaviour
- {
- [SerializeField]protected Slider _slider;
- private float _delayToFill = 0.5f;
- protected void OnHealthChanged(int value, int maxValue)
- {
- _slider.DOValue((float)value / maxValue, _delayToFill);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement