popcorn/Scripts/Utilities/Gauge/GaugeImage.cs

14 lines
304 B
C#

using UnityEngine;
using UnityEngine.UI;
public sealed class GaugeImage : GaugeParent {
[SerializeField]
private Image gauge = default;
public override void UpdateGauge(float percentage){
gauge.fillAmount = percentage;
this.percentage = percentage;
}
}