mirror of
https://github.com/Kizuren/SynthMaze.git
synced 2026-01-11 17:11:23 +01:00
25 lines
538 B
C#
25 lines
538 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class MarcPresents : MonoBehaviour
|
|
{
|
|
public SceneFader sceneFader;
|
|
public string levelToLoad = "Start";
|
|
public float timeToWait = 7.0f;
|
|
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
StartCoroutine(StartScene());
|
|
}
|
|
|
|
IEnumerator StartScene()
|
|
{
|
|
yield return new WaitForSeconds(timeToWait);
|
|
SoundBar.SceneReloaded = true;
|
|
sceneFader.FadeTo(levelToLoad);
|
|
}
|
|
|
|
}
|