Skip to main content

AnimatedEmblem

A class in Root.Township, Alta.QuickAccessActions.

Name board emblem that plays a closing animation before it is removed.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private Animator animatorAnimator that plays the closing animation.
private Action callBackCallback passed to Close.
private string disablingParameterAnimator bool set to start closing.

Methods​

MemberWhat it is
override void Close(Action callBack)Sets the animator's disabling bool and stores the callback to run when the animation ends.
1 private and internal method
MemberWhat it is
private void IAnimationEndCallbackReceiver.OnAnimationEnded()Runs the stored close callback.