Files
plugin-library/Assets/00.StaryEvoTools/Samples~/SplashScreen/SplashScreen.cs
zhangzheng 0691cb632b 11
2026-03-26 14:14:19 +08:00

25 lines
513 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using Cysharp.Threading.Tasks;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SplashScreen : MonoBehaviour
{
public string sceneName;
async void Start()
{
await Task.Delay(TimeSpan.FromSeconds(2));
await SceneManager.LoadSceneAsync(sceneName);
Destroy(gameObject);
}
// Update is called once per frame
void Update()
{
}
}