Exemple #1
0
 private void Awake()
 {
     anim             = transform.GetComponent <Animator>();
     directionXAnimId = Animator.StringToHash("directionX");
     directionYAnimId = Animator.StringToHash("directionY");
     isMovingAnimId   = Animator.StringToHash("isMoving");
 }
Exemple #2
0
        public void OnAnimationRepeat(Animator?animation)
        {
            var h = AnimationRepeat;

            if (h != null)
            {
                h(animation, EventArgs.Empty);
            }
        }
Exemple #3
0
        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);