Click or drag to resize

CacheableTriggerable Class

A Triggerable that also performs caching, allowing us to easily set values to their cached versions.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          DustProductions.TriggerMeTimbersTriggerable
            DustProductions.TriggerMeTimbersCacheableTriggerable
              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 CacheableTriggerable : Triggerable

The CacheableTriggerable type exposes the following members.

Constructors
  NameDescription
Protected methodCacheableTriggerable
Initializes a new instance of the CacheableTriggerable class
Top
Methods
  NameDescription
Protected methodAwake
The Awake method Unity calls.
Protected methodDoCache
Classes are responsible for implementing the caching themselves.
Protected methodSetToCached
Classes are responsible for setting themselves to the cached values.
Protected methodSetToCustom
Classes are responsible for setting themselves to the custom values.
Protected methodStart
The Start method Unity calls.
Protected methodTriggerHit
Sets values to custom or cached, depending on what options are selected in the inspector and what value is passed in.
(Overrides TriggerableTriggerHit(Boolean).)
Top
Fields
  NameDescription
Protected fieldCachePrompt
When should this object cache itself?
Protected fieldHasCached
If this object has already cached
Top
See Also
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          DustProductions.TriggerMeTimbersTriggerable
            DustProductions.TriggerMeTimbersCacheableTriggerable
              DustProductions.TriggerMeTimbersTriggerableSetAudioSourceAudioClip
              DustProductions.TriggerMeTimbersTriggerableSetBehavioursEnabled
              DustProductions.TriggerMeTimbersTriggerableSetGameObjectsActive
              DustProductions.TriggerMeTimbersTriggerableSetImageSprite
              DustProductions.TriggerMeTimbersTriggerableSetInputText
              DustProductions.TriggerMeTimbersTriggerableSetText
              DustProductions.TriggerMeTimbersTriggerableSetToggle