21 lines
388 B
C#
21 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");
|
|||
|
}
|
|||
|
|
|||
|
}
|