holopy3/Assets/Scripts/SceneChanger.cs

21 lines
388 B
C#
Raw Normal View History

2020-12-10 14:25:12 +00:00
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");
}
}