示例#1
0
 public void Attack(HexUnit enemy, HexDirection direction, Int32 dmg)
 {
     SetEnemy(enemy);
     enemy.Damage(dmg);
     enemy.SetEnemy(this);
     _animator.SetBool(String.Format("{0}{1}", AnimationSet.WALK, direction.GetName()), false);
     _animator.SetTrigger(String.Format("{0}{1}", AnimationSet.ATTACK, direction.GetName()));
 }