public void ApplyModifierByName(BattleUnit caster, AbilityData abilityData, string modifierName) { var modifierData = abilityData.GetModifierData(modifierName); if (modifierData != null) { BattleLog.LogError("角色[{0}]的技能[{1}]未找到Modifier[{2}]的数据", id, abilityData.configFileName, modifierName); return; } ApplyModifier(caster, abilityData, modifierData); }