using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class AImageFilled : MonoBehaviour { private Image image; private void OnEnable() { if (image == null) image = GetComponent(); image.fillAmount = 0; } private void Update() { image.fillAmount += Time.deltaTime; } }