Files
DropToTheRoots/Game/Assets/Scripts/SceneController.cs
T
2026-06-06 15:19:13 +02:00

14 lines
388 B
C#

using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneController : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
public int sceneIndex;
private void OggerEnter2D(Collider2D collision)
{
Debug.Log("Hole");
SceneManager.LoadScene(sceneIndex, LoadSceneMode.Single);
}
}