Trigger - Methods

Activate

Activate()

Starts the Trigger scanning for the Target.

Deactivate

Deactivate()

Stops the Trigger scanning for the Target.

Triggers can be deactivated so that the player can pass through them without triggering an Event, and then activated later so that the Event triggers if the player passes through the Trigger again.

ScanForTarget

ScanForTarget()

Performs a single scan to check if the Target object is in the Trigger area.

If the Trigger is Active, this method is called automatically by a coroutine at a rate determined by the Trigger's Scan Interval.