hellbound/Assets/Scripts/Game/Loader/LoaderView.cs

21 lines
404 B
C#

using UnityEngine;
using UnityEngine.UI;
public class LoaderView : MonoBehaviour
{
[SerializeField] private Image _filler = null;
public float Amount => _filler.fillAmount;
private void Awake()
{
_filler.type = Image.Type.Filled;
_filler.fillAmount = 0f;
}
public void Fill(float value)
{
_filler.fillAmount = value;
}
}