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("test1", MainUICanvas.Inst.Medium); await UIManager.Inst.ShowUIAsync("test2", MainUICanvas.Inst.Medium); await UIManager.Inst.ShowUIAsync("test2"); await UIManager.Inst.ShowUIAsync("test3"); await UIManager.Inst.TestShowUIAsync("FullTest", "test4", MainUICanvas.Inst.Medium,true); UIManager.Inst.TestShowUI("FullTest","test5", MainUICanvas.Inst.Medium); } }