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

21 lines
404 B
C#
Raw Permalink Normal View History

2021-11-26 11:16:25 +03:00
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;
}
}