You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
481 B
22 lines
481 B
using System; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
|
|
//范围检测 |
|
public class RangeCheck : MonoBehaviour { |
|
|
|
public Action<Collider> 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"); |
|
} |
|
}
|
|
|