ShantiManti/Assets/game/Scripts/UI_start/MarcPresents.cs
2024-04-28 13:51:52 +02:00

24 lines
525 B (Stored with Git LFS)
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MarcPresents : MonoBehaviour
{
public SceneFader sceneFader;
public string levelToLoad = "Start";
public float howMuchToWait = 3.0f;
// Start is called before the first frame update
void Start()
{
StartCoroutine(StartScene());
}
IEnumerator StartScene()
{
yield return new WaitForSeconds(howMuchToWait);
sceneFader.FadeTo(levelToLoad);
}
}