From 0d03241a5aac50eff2e763e0e1a4de8948ed207a Mon Sep 17 00:00:00 2001 From: wulongxiao <2545507770@qq.com> Date: Wed, 8 Jan 2025 13:31:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=BF=E7=94=A8=E6=8A=80?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/script/A_Fight/SkillUp/SkillUp.cs | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) 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