Exemplo n.º 1
0
    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 Defend()
 {
     attackDefend.Defend();
 }