hole, scene management

This commit is contained in:
orsolya-st
2026-06-06 15:19:13 +02:00
parent 21e49157ab
commit 8cb4fd5d93
2 changed files with 19 additions and 8 deletions
+6 -8
View File
@@ -1,16 +1,14 @@
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneController : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
public int sceneIndex;
// Update is called once per frame
void Update()
private void OggerEnter2D(Collider2D collision)
{
Debug.Log("Hole");
SceneManager.LoadScene(sceneIndex, LoadSceneMode.Single);
}
}
}