Пример #1
0
 public void Setup()
 {
     animator = GetComponentInChildren<Animation>();
     if (CanAnimate = (animator .IsNotNull ()))
     {
         //States
         idlingClip = animator.GetClip (idling);
         movingClip = animator.GetClip (moving);
         engagingClip = animator.GetClip (engaging);
         dyingClip = animator.GetClip (dying);
         //Impulses
         fireClip = animator.GetClip (fire);
     }
 }