Exemple #1
0
 private void SetAttackAnimation()
 {
     //protect against animator override controller
     if (!character.GetAnimatorOverride())
     {
         Debug.Break();
         Debug.LogAssertion("Please Provide " + gameObject.name + " with Animator Override Controller ");
     }
     else
     {
         var animatorOverrideController = character.GetAnimatorOverride();
         animator.runtimeAnimatorController         = animatorOverrideController;
         animatorOverrideController[DEFAULT_ATTACK] = currentWeaponConfig.GetAnimClip();
     }
 }