Пример #1
0
 private void AddSkill(int skillID, Skill skill)
 {
     if (!skillList.ContainsKey(skillID))
     {
         skill.SetSkillID(skillID);//设置ID与地图一致
         skillList.Add(skillID, skill);
     }
     else
     {
         LogsSystem.Instance.Print("已经有了该技能的ID:" + skillID + ",该ID的技能无法被注册");
     }
 }