【m】框架大更新

This commit is contained in:
2025-10-31 11:18:23 +08:00
parent ae6e7c804b
commit 8e1d52ddbf
1883 changed files with 213934 additions and 640 deletions

View File

@@ -0,0 +1,39 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UniFramework.Utility;
public class UILoadingWindow : MonoBehaviour
{
private readonly UniTimer _timer = UniTimer.CreatePepeatTimer(0, 0.2f);
private Text _info;
private int _countdown;
private void Awake()
{
_info = this.transform.Find("info").GetComponent<Text>();
}
private void Start()
{
_info.text = "Loading";
_timer.Reset();
_countdown = 0;
}
private void Update()
{
if (_timer.Update(Time.deltaTime))
{
_countdown++;
if (_countdown > 6)
_countdown = 0;
string tips = "Loading";
for (int i = 0; i < _countdown; i++)
{
tips += ".";
}
_info.text = tips;
}
}
}