private void ActionDefence(TypeActionTeng typeAction) { if (typeAction == TypeActionTeng.Defence) { actions.PlayerDefDamage(); } }
private void ActionHeal(TypeActionTeng typeAction) { if (typeAction == TypeActionTeng.Heal) { actions.PlayerHeal(50); } }
private void ActionAttack(TypeActionTeng typeAction) { if (typeAction == TypeActionTeng.Attack) { actions.AttackAble(true); actions.AttackAble(false); } }
public void execute(TypeActionTeng typeAction) { switch (typeAction) { case TypeActionTeng.Attack: ActionAttack(typeAction); break; case TypeActionTeng.Defence: ActionHeal(typeAction); break; case TypeActionTeng.Heal: ActionDefence(typeAction); break; } }
public void ActionAttack_(TypeActionTeng type) { }