11
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user