private void AddNewlyDetectedTargets(List <Collider> targetsInFieldOfView) { foreach (Collider collider in targetsInFieldOfView) { if (!detectedTargets.Contains(collider)) { detectedTargets.Add(collider); TargetDetected?.Invoke(collider); } } }
private void OnTargetAcquired() { TargetInSight = true; TargetDetected?.Invoke(_Player); }