Click or drag to resize

Triggerable Class

Inherit from this to easily implement Triggerable behaviour. Once you do so, and implement the abstract methods, you will be able to hook your class into all the Triggers TriggerMeTimbers has to offer. If you are unable to inherit from this, you can also just implement the ITriggerable interface.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          DustProductions.TriggerMeTimbersTriggerable
            More...

Namespace:  DustProductions.TriggerMeTimbers
Assembly:  DustProductions.TriggerMeTimbers (in DustProductions.TriggerMeTimbers.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public abstract class Triggerable : MonoBehaviour, 
	ITriggerable

The Triggerable type exposes the following members.

Constructors
  NameDescription
Protected methodTriggerable
Initializes a new instance of the Triggerable class
Top
Methods
  NameDescription
Protected methodReset
The Reset method Unity calls.
Protected methodTriggerHit(Boolean)
This TriggerHit is protected from access by outside classes. It must be implemented in inheriting classes. It will be called after the Triggerable does all the behaviour defined in the public TriggerHit. This is where you would determine what happens when either true or false is passed in.
Public methodTriggerHit(MonoBehaviour, Boolean)
This is the main way to use Triggerables. This method is called by Trigger, which will pass in either true or false depending on the conditions of the Trigger. This can also be called by things other than Triggers, but it's good practice to turn whatever wants to call this into a Trigger so that it's easily reusable.
Top
See Also
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          DustProductions.TriggerMeTimbersTriggerable
            DustProductions.TriggerMeTimbersCacheableTriggerable
            DustProductions.TriggerMeTimbersTriggerableAddForceToRigidbody
            DustProductions.TriggerMeTimbersTriggerableAudioSourcePlayback
            DustProductions.TriggerMeTimbersTriggerablePlayAnimation
            DustProductions.TriggerMeTimbersTriggerableSelectSelectable
            DustProductions.TriggerMeTimbersTriggerableSetColor
            DustProductions.TriggerMeTimbersTriggerableSetFloat
            DustProductions.TriggerMeTimbersTriggerableSetMouseCursor
            DustProductions.TriggerMeTimbersTriggerableSetTransformValues