respawning

This commit is contained in:
2023-04-11 13:40:17 +02:00
parent fd44becec0
commit a0aaf5e87d
12 changed files with 586 additions and 164 deletions

View File

@@ -0,0 +1,17 @@
using EscapeRoomEngine.Engine.Runtime.Utilities;
using UnityEngine;
namespace Station46.Scripts
{
[RequireComponent(typeof(Collider))]
public class RespawnTrigger : MonoBehaviour
{
private void Awake()
{
if (!GetComponent<Collider>().isTrigger)
{
throw new WrongTypeException($"{this} must have a trigger collider.");
}
}
}
}