Scriptum/Assets/Scripts/ChangeScene.cs

13 lines
254 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class ChangeScene : MonoBehaviour
{
public void MoveToScene(int sceneID)
{
SceneManager.LoadScene(sceneID);
}
}