25 lines
513 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|