diff --git a/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs b/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs index d8cf9c69..9227a356 100644 --- a/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs +++ b/meng_yao/Assets/script/A_Fight/SkillUp/SkillUp.cs @@ -155,22 +155,6 @@ public class SkillUp : Fun /// 等级 public void UseSkill(int index, int level) { - string skillKey = $"Skill_{index}"; - - // 判断是否有这个技能 - if (skillUpgrades.ContainsKey(skillKey) && skillUpgrades[skillKey].ContainsKey(level)) - { - // 调用相应技能等级的效果 - //[skillKey][level].Invoke(); - - Debug.LogError("开始使用"+role.id + "_S_" + index.ToString()); - Debug.LogError("role.id:" + role.id +"index" + index.ToString()+"level"+ level.ToString()); - Up(role.id, role.id + "_S_" + index.ToString(), level.ToString()); - Debug.LogError("使用完成"+role.id + "_S_" + index.ToString()); - } - else - { - Debug.LogWarning("没有这个技能或者技能等级无效"); - } + Up(role.id, role.id + "_S_" + index.ToString(), level.ToString()); } } \ No newline at end of file