//Jimmy Vegas Unity Tutorial //This script is for your trap door using System.Collections; using System.Collections.Generic; using UnityEngine; public class TrapDoorTrig : MonoBehaviour { public GameObject trapDoor; void OnTriggerEnter(Collider other) { trapDoor.GetComponent().enabled = true; } }