//Jimmy Vegas Unity Tutorial //This script will open your door using System.Collections; using System.Collections.Generic; using UnityEngine; public class DoorOpenHouseOne : MonoBehaviour { public GameObject theDoor; public AudioSource creakSound; void OnTriggerEnter(Collider other) { creakSound.Play(); theDoor.GetComponent().enabled = true; theDoor.GetComponent().Play("OpenDoorVillageOne"); this.GetComponent().enabled = false; } }