Exemplo n.º 1
0
 /// <summary>
 /// 激活所有技能
 /// </summary>
 public void ActiveSkills()
 {
     for (int i = 0; i < this.m_listSkillData.Count; i++)
     {
         SkillGameData skillData = this.m_listSkillData[i];
         if (!skillData.IsActive)
         {
         }
         SkillBase skillBase = SkillGameManager.GetSkillBase(skillData.Id);
         if (skillBase != null)
         {
             skillBase.Active(this.m_unMasterBeastId);
         }
     }
 }
Exemplo n.º 2
0
    /// <summary>
    /// 激活某个技能
    /// </summary>
    /// <param name="unSkillId"></param>
    public void ActiveSkill(int unSkillId)
    {
        SkillGameData skill = this.GetSkillById(unSkillId);

        if (skill != null && !skill.IsError)
        {
            if (!skill.IsActive)
            {
                //this.MasterBeast
            }
            SkillBase skillStrategy = SkillGameManager.GetSkillBase(skill.Id);
            if (skillStrategy != null)
            {
                skillStrategy.Active(this.m_unMasterBeastId);
            }
        }
    }