修改使用技能

This commit is contained in:
wulongxiao 2025-01-08 13:31:18 +08:00
parent 7a74851f0a
commit 0d03241a5a

View File

@ -155,22 +155,6 @@ public class SkillUp : Fun
/// <param name="level">µÈ¼¶</param>
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());
}
}