using System.Collections; using System.Collections.Generic; using UnityEngine; public class DoorAniEvent : MonoBehaviour { public GameObject door; public GameObject player; public void DoorAni() { door.GetComponent().SetTrigger("door"); gameObject.SetActive(false); } }