using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class DoorController : MonoBehaviour { public GateController gateController; private void OnTriggerEnter(Collider other) { gateController.OnTriggerEnter(this.gameObject); Debug.Log(other.gameObject); } // private void OnTriggerExit(Collider other) // { // gateController.OnTriggerEnter(other.gameObject); // } }