public void Update() { if (target != null) { if (!_hasMarker) { AddTargetMarker(target); } if (!target.InRange(_actor, 15f) || !target.CanSee(_actor)) { RemoveTargetMarker(target); target = null; } } }