Example #1
0
 public static void CrossFade(Animator animator, AnimatorClip animatorClip)
 {
     if (!animator)
     {
         return;
     }
     if (!animatorClip)
     {
         return;
     }
     animator.CrossFade(animatorClip.hash, animatorClip.transitionTime, -1, 0);
 }
Example #2
0
 public static void Play(Animator animator, AnimatorClip animatorClip)
 {
     if (!animator)
     {
         return;
     }
     if (!animatorClip)
     {
         return;
     }
     animator.Play(animatorClip.hash, -1, 0);
 }