using UnityEngine; [RequireComponent(typeof(Collider))] public class LevelCompleteDoorTrigger : MonoBehaviour { public string playerTag = "Player"; private void Start() { } void Reset() { // Make sure the collider is a trigger var col = GetComponent(); if (col) col.isTrigger = true; } void OnTriggerEnter(Collider other) { if (other.CompareTag(playerTag)) { //CrateEscapeGameManager.Instance?.OnLevelCompleteTriggered(); } } }