本文整理汇总了C#中Combatant.GetAnimationComponent方法的典型用法代码示例。如果您正苦于以下问题:C# Combatant.GetAnimationComponent方法的具体用法?C# Combatant.GetAnimationComponent怎么用?C# Combatant.GetAnimationComponent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Combatant
的用法示例。
在下文中一共展示了Combatant.GetAnimationComponent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetAnimationLayers
/*
============================================================================
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);
}
}
}
示例2: SetAnimationLayers
/*
============================================================================
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);
}
}