修改使用技能
This commit is contained in:
parent
7a74851f0a
commit
0d03241a5a
@ -155,22 +155,6 @@ public class SkillUp : Fun
|
|||||||
/// <param name="level">µÈ¼¶</param>
|
/// <param name="level">µÈ¼¶</param>
|
||||||
public void UseSkill(int index, int level)
|
public void UseSkill(int index, int level)
|
||||||
{
|
{
|
||||||
string skillKey = $"Skill_{index}";
|
Up(role.id, role.id + "_S_" + index.ToString(), level.ToString());
|
||||||
|
|
||||||
// 判断是否有这个技能
|
|
||||||
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("没有这个技能或者技能等级无效");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user