/*
 ============================================================================
 Animation handling functions
 ============================================================================
 */
 public void SetAnimationLayers(Combatant c)
 {
     Animation a = c.GetAnimationComponent();
     if(a != null)
     {
         for(int i=0; i<this.animation.Length; i++)
         {
             this.animation[i].Init(a, c);
         }
     }
 }
 /*
 ============================================================================
 Animation handling functions
 ============================================================================
 */
 public void SetAnimationLayers(Combatant c)
 {
     Animation a = c.GetAnimationComponent();
     if(a != null)
     {
         this.idle.Init(a, c);
         this.walk.Init(a, c);
         this.run.Init(a, c);
         this.sprint.Init(a, c);
         this.jump.Init(a, c);
         this.fall.Init(a, c);
         this.land.Init(a, c);
         this.attack.Init(a, c);
         this.defend.Init(a, c);
         this.item.Init(a, c);
         this.skill.Init(a, c);
         this.damage.Init(a, c);
         this.evade.Init(a, c);
         this.death.Init(a, c);
         this.revive.Init(a, c);
         this.victory.Init(a, c);
         this.idleAfter.Init(a, c);
     }
 }