Class TriggerBehaviour
Behaviour that can trigger and kill a piece of code.
Namespace: GGL.Animation
Assembly: GGL.dll
Syntax
[HelpURL("https://ggl.yoannhaffner.com/articles/tweens.html")]
public abstract class TriggerBehaviour : MonoBehaviour
Remarks
Base class for every Tween<T>, so that animations can be triggered. However you can use this class to trigger you own stuff.
Fields
| Edit this page View SourcetriggerOnceEnabled
Declaration
[SerializeField]
protected bool triggerOnceEnabled
Field Value
Type | Description |
---|---|
bool | Once the component is ative in scene, it will be triggered. |
Methods
| Edit this page View SourceKill()
Some way to kill what you triggered.
Declaration
public abstract void Kill()
Trigger()
Whatever you want to trigger.
Declaration
public abstract void Trigger()