17 lines
375 B
C#
17 lines
375 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using Tuan.GameScripts.Main;
|
|
|
|
public class LoadingWindow : UIBase,IProgress<float>
|
|
{
|
|
public Slider slider;
|
|
public Text progressText;
|
|
public void Report(float value)
|
|
{
|
|
slider.value = value;
|
|
progressText.text = $"{value * 100:F0}%";
|
|
Debug.Log($"{gameObject.name};{value}");
|
|
}
|
|
}
|