fix part 2

This commit is contained in:
orsolya-st
2026-06-07 10:04:17 +02:00
parent 0064114899
commit 7ae516ec1b
+1 -9
View File
@@ -148,12 +148,8 @@ public class DamageHandler : MonoBehaviour
if (isDead) return; if (isDead) return;
isDead = true; isDead = true;
<<<<<<< Updated upstream
TreeSpawner.treeCount = 0; TreeSpawner.treeCount = 0;
if (reason == "hole") if (reason == "hole")
=======
if(reason == "hole")
>>>>>>> Stashed changes
{ {
TreeSpawner.treeCount = 0; TreeSpawner.treeCount = 0;
SceneManager.LoadScene(2, LoadSceneMode.Single); SceneManager.LoadScene(2, LoadSceneMode.Single);
@@ -164,14 +160,10 @@ public class DamageHandler : MonoBehaviour
Debug.Log("Fell too much"); Debug.Log("Fell too much");
TreeSpawner.treeCount = 0; TreeSpawner.treeCount = 0;
SceneManager.LoadScene(3, LoadSceneMode.Single); SceneManager.LoadScene(3, LoadSceneMode.Single);
<<<<<<< Updated upstream
} else if (reason == "Timer") } else if (reason == "Timer")
{ {
SceneManager.LoadScene(3,LoadSceneMode.Single); SceneManager.LoadScene(3,LoadSceneMode.Single);
=======
//Destroy(gameObject);
>>>>>>> Stashed changes
} }
Destroy(gameObject); //Destroy(gameObject);
} }
} }