Ejemplo n.º 1
0
    public void SetAttackType(string type)
    {
        attack = type;

        switch (attack)
        {
        case ("heavy"): damage = playProp.GetPlayerStats().heavyAttackStrength; break;

        case ("quick"): damage = playProp.GetPlayerStats().quickAttackStrength; break;

        case ("quickAir"): damage = playProp.GetPlayerStats().quickAirAttackStrength; break;

        case ("heavyAir"): damage = playProp.GetPlayerStats().heavyAirAttackStrengh; break;

        case ("drag"):
            damage = playProp.GetPlayerStats().quickAttackStrength;
            InvokeRepeating("DragAttackApplyDamage", DRAG_REPEAT_DMG_APPLY_ST, DRAG_REPEAT_DMG_RATE);
            break;

        default: attack = ""; break;
        }
    }