EnableAtDistance
Class in Zigurous.Utility
Declaration
public sealed class EnableAtDistance : MonoBehaviour
Description
Enables or disables a behavior based on the distance to a target transform.
Properties
rangeType | Whether the object is enabled or disabled when the target is in range. |
target | The target transform to measure distance from. |
enablingBehavior | The behavior to enable or disable. |
minDistance | The minimum distance for the behavior to be enabled. |
maxDistance | The maximum distance for the behavior to be enabled. |
withinRange | Whether object is currently within the range. |