コード例 #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;
        }
    }
コード例 #2
0
 public void Defend()
 {
     attackDefend.Defend();
 }