Death Zone/Respawn möglich

This commit is contained in:
Maximilian Wagner
2023-05-12 15:25:59 +02:00
parent 6590b4ccb5
commit b8ae715f05
8 changed files with 1316 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using UnityEngine.SceneManagement;
using UnityEngine;
public class respawnReload : MonoBehaviour
{
void Start()
{
}
void Update()
{
}
private void OnCollisionEnter2D(Collision2D other)
{
if (other.gameObject.CompareTag("Player"))
{
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
Debug.Log("Respawn: Reload");
}
}
}