유니티 3D 일정 범위 안에 있는 오브젝트 찾기 검출 될 콜라이더 레이어를 Enemy로 바꾼후 스크립트에서 Enemy만 검출되게 바꾼다 using System.Collections; using System.Collections.Generic; using UnityEngine; public class overlapsphere : MonoBehaviour { public float radius = 0f; public LayerMask layer; public Collider[] colliders; void Start() { } void Update() { colliders = Physics.OverlapSphere(transform.position, radius, layer); } private void O..