CD-ROOM/Assets/Scripts/LoadingProgressBar.cs
Gerard Gascón 341a877b4a init
2025-04-24 17:37:25 +02:00

19 lines
412 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class LoadingProgressBar : MonoBehaviour{
Image image;
// Start is called before the first frame update
void Awake(){
image = GetComponent<Image>();
}
// Update is called once per frame
void Update(){
image.fillAmount = Loader.GetLoadingProgress();
}
}