private void TakeAction() { switch (action) { case Action.Attack: attackDefendController.Attack(target); break; case Action.Defend: attackDefendController.Defend(); break; case Action.Item: itemController.UseItem(target); break; case Action.Ability: abilityController.UseAbility(target); break; default: break; } }
public void Attack(UnitStats target) { attackDefend.Attack(target); }