end scenes working now yippiee :D

This commit is contained in:
cemt1363
2026-06-07 05:03:50 +02:00
parent 6f33be5600
commit 4646b02849
6 changed files with 295 additions and 73 deletions
+1
View File
@@ -125,6 +125,7 @@ public class DamageHandler : MonoBehaviour
public void Die(String reason)
{
TreeSpawner.treeCount = 0;
if(reason == "hole")
{
SceneManager.LoadScene(2, LoadSceneMode.Single);