public abstract class Trigger : MonoBehaviour, IComponentAddedHandler
Thetype exposes the following members.
A convenience method that can be used to determine if either TrueTrigger or FalseTrigger have certain values. This will also automatically call HitTrigger for you if it finds a match.
Triggers are responsible for defining what their triggers actually are. This method is used to fetch the strings to display in the editor dropdowns for TrueTrigger and FalseTrigger.
Can be called by ITriggerables to add to the Triggerables array. If a ITriggerable is added to this component, it will be added to the array.
Called when something the Trigger cares about has happened. You can call this directly, or indirectly using CheckTriggerString().
The OnValidate method called by Unity.
The Reset method called by Unity.
This will be called if there is a delay between when the a trigger is hit, and when we want to notify the Triggerables about the hit.
A reference to any currently running wait Coroutines for when false has been hit. Used to make it easy to cancel if another trigger is hit while it is running.
A reference to any currently running wait Coroutines for when true has been hit. Used to make it easy to cancel if another trigger is hit while it is running.
When should this Trigger send the false status to its referenced Triggerables?
Keeps track of the last value sent by this Trigger, if there is a value.
By default, "None" is the only Trigger available. Triggers are responsible for defining their Triggers themselves.
The ITriggerable MonoBehaviours that will be notified when a Trigger has been hit.
This field is used to define what will show up in the dropdown for a Trigger. It is hidden by default because it should not be modified in the inspector, only by code using GetTriggerDropdownOptions().
When should this Trigger send the true status to its referenced Triggerables?