using System; using System.Collections; using System.Collections.Generic; using UnityEngine; //范围检测 public class RangeCheck : MonoBehaviour { public Action InRange; private void OnTriggerEnter(Collider other) { Debug.Log("OnTriggerEnter"); } private void OnTriggerStay(Collider other) { Debug.Log("OnTriggerStay"); } private void OnTriggerExit(Collider other) { Debug.Log("OnTriggerExit"); } }