private void Awake() { anim = transform.GetComponent <Animator>(); directionXAnimId = Animator.StringToHash("directionX"); directionYAnimId = Animator.StringToHash("directionY"); isMovingAnimId = Animator.StringToHash("isMoving"); }
public void OnAnimationRepeat(Animator?animation) { var h = AnimationRepeat; if (h != null) { h(animation, EventArgs.Empty); } }
public void OnAnimationCancel(Animator?animation) { var h = AnimationCancel; if (h != null) { h(animation, EventArgs.Empty); } }
public override void OnAnimationStart(Animator?animation) => _lottieVisualSource.SetIsPlaying(true);
public override void OnAnimationPause(Animator?animation) => _lottieVisualSource.SetIsPlaying(false);