20 lines
428 B
C#
20 lines
428 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace 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}");
|
|
}
|
|
}
|
|
}
|
|
|