Skip to main content

AnimationTrigger

A class in Root.Township, the global namespace.

Fires inspector events when the object is enabled or disabled. The disable event is skipped while the game is quitting.

Constructors​

MemberWhat it is
AnimationTrigger()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private AltaEvent onDisableBacking field for Disabled.
private AltaEvent onEnableBacking field for Enabled.

Properties​

MemberWhat it is
AltaEvent Disabled { get; }Event fired on disable (not while quitting).
AltaEvent Enabled { get; }Event fired on enable.

Methods​

2 private and internal methods
MemberWhat it is
private void OnDisable()Invokes onDisable unless the application is quitting.
private void OnEnable()Invokes onEnable.