Unity Physics.OverlapSphere
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void ExplosionDamage(Vector3 center, float radius)
{
Collider[] hitColliders = Physics.OverlapSphere(center, radius);
foreach (var hitCollider in hitColliders)
{
hitCollider.SendMessage("AddDamage");
}
}
}