public void AddSkill(SkillRuntime skill) { skill.InitNetData(this.netData); if (skillTable.ContainsKey(skill.key)) { skillTable[skill.key] = skill; } else { skillTable.Add(skill.key, skill); } changeSkill(skill.skillId); }
public void AddSkill(SkillRuntime skill) { skill.InitNetData(this.netData); if (skillTable.ContainsKey(skill.key)) { skillTable[skill.key] = skill; } else { skillTable.Add(skill.key, skill); //UnityEngine.Debug.LogError("错误的Key "+skill.key); } changeSkill(skill.skillId); // }