Interface IEventBasedProximity<T>
Able to listen for a certain type of object to enter or leave the proximity.
public interface IEventBasedProximity<out T> : IProximity, IShapeVolume, ICloneable
Type Parameters
T
- Inherited Members
-
IShapeVolume.containsPoint(Vector3)IShapeVolume.worldBoundsIShapeVolume.internalVolumeIShapeVolume.surfaceArea
- Extension Methods
Events
OnObjectEntered
Invoked when an object goes in proximity.
event Action<IEventBasedProximity<out T>, out T> OnObjectEntered
Event Type
- Action<IEventBasedProximity<T>, T>
OnObjectExited
Invoked when an object leaves proximity.
event Action<IEventBasedProximity<out T>, out T> OnObjectExited
Event Type
- Action<IEventBasedProximity<T>, T>