//Jimmy Vegas Unity Tutorial //This script will open your door using System.Collections; using System.Collections.Generic; using UnityEngine; public class DoorOpenFirst : MonoBehaviour { public GameObject theDoor; void OnTriggerEnter(Collider other) { theDoor.GetComponent().Play("DoorOpen"); } }