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

24 lines
892 B
C#

using Cysharp.Threading.Tasks;
using UnityEngine;
using YooAsset;
public class GameStart : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
async void Start()
{
Debug.Log("GameStart");
GamePreload.Inst.Test("call by GameStart");
await LoadSimpleR3Test();
}
async UniTask LoadSimpleR3Test()
{
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);
}
}