Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
    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);
        //
    }