Refactor ProximityDetectionSystem

ProximityTargetUpdatedEvent - is now only raised when distance to the target changes and Detector field is now Entity<ProximityDetectorComponent>.
NewProximityTargetEvent - Detector field is now Entity<ProximityDetectorComponent>.
ProximityDetectorComponent - TargetEnt field renamed into Target, Criteria field renamed into Components and now is ComponentRegistry.

Distance field in ProximityDetectionAttemptEvent, ProximityTargetUpdatedEvent and NewProximityTargetEvent are now floats.

1 Like