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; } }