Isoulated/Assets/Tools/SceneManager/LoadingProgressBar.cs
Gerard Gascón 001bb14f16 init
2025-04-24 17:19:36 +02:00

19 lines
422 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 = transform.GetComponent<Image>();
}
// Update is called once per frame
void Update(){
image.fillAmount = Loader.GetLoadingProgress();
}
}