holopy3/Assets/Scripts/SceneChanger.cs
2020-12-10 15:25:12 +01:00

20 lines
388 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneChanger : MonoBehaviour
{
public void ChangeScene()
{
StartCoroutine("ChangeNow");
}
private IEnumerator ChangeNow()
{
yield return new WaitForSeconds(1);
SceneManager.LoadScene("MazeGeneration");
}
}