public void OnPointerEnter(PointerEventData eventData)
 {
     _animation.PlayAnimation();
     if (OnCardEnter != null)
     {
         OnCardEnter();
     }
 }
Exemple #2
0
 private void ExecutePointerEnter()
 {
     if (OnPointerEnterBehaviour.Enabled)
     {
         OnPointerEnterBehaviour.PlayAnimation(this);
     }
 }
        public void PlayAnimation(AnimatedElements type)
        {
            UIAnimation anim = GetAnimationByType(type);

            if (anim != null)
            {
                anim.PlayAnimation();
            }
        }