Exemplo n.º 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()));
 }
Exemplo n.º 2
0
 public void Rotate(HexDirection direction)
 {
     _direction = direction;
     SetAnimation(String.Format("{0}{1}", AnimationSet.WALK, direction.GetName()));
 }