Files
TuanTuan-Engine/Assets/GameScripts/Main/GameStart.cs

24 lines
892 B
C#
Raw Normal View History

using Cysharp.Threading.Tasks;
2025-11-03 17:46:28 +08:00
using UnityEngine;
using YooAsset;
2025-11-03 17:46:28 +08:00
public class GameStart : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
async void Start()
2025-11-03 17:46:28 +08:00
{
2025-11-04 16:19:53 +08:00
Debug.Log("GameStart");
GamePreload.Inst.Test("call by GameStart");
await LoadSimpleR3Test();
}
async UniTask LoadSimpleR3Test()
{
2025-11-06 17:34:33 +08:00
UIManager.Inst.ShowUI<SimpleR3Test>("test1", MainUICanvas.Inst.Medium);
await UIManager.Inst.ShowUIAsync<SimpleR3Test>("test2", MainUICanvas.Inst.Medium);
await UIManager.Inst.ShowUIAsync<SimpleR3Test>("test2");
await UIManager.Inst.ShowUIAsync<SimpleR3Test>("test3");
await UIManager.Inst.TestShowUIAsync("FullTest", "test4", MainUICanvas.Inst.Medium,true);
UIManager.Inst.TestShowUI("FullTest","test5", MainUICanvas.Inst.Medium);
2025-11-03 17:46:28 +08:00
}
}