scene change hole

This commit is contained in:
orsolya-st
2026-06-06 16:20:32 +02:00
parent 2c1b454fff
commit 34acdc3aaa
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class DropletMovement : MonoBehaviour
{
@@ -97,7 +98,8 @@ public class DropletMovement : MonoBehaviour
//Hole
if (other.CompareTag("Hole"))
{
//Destroy(gameObject);
SceneManager.LoadScene(2, LoadSceneMode.Single);
Destroy(gameObject);
Debug.Log("Fell in hole!");
}