Beispiel #1
0
    /// <summary>
    /// 获取召唤兽技能品质之和
    /// </summary>
    public int getMountsSkillCombat(Mounts mounts)
    {
        int skillCombat = 0;

        if (mounts.getSkills() != null)
        {
            Skill[] skills = mounts.getSkills();
            for (int i = 0; i < skills.Length; i++)
            {
                skillCombat += skills[0].getSkillQuality();
            }
        }
        return(skillCombat);
    }
 /** 更新被动技能 */
 private void updatePassiveSkill()
 {
     skillGroups.SetActive(true);
     for (int i = 0; i < skills.Length; i++)
     {
         skills[i].gameObject.SetActive(false);
     }
     Skill[] mountSkills = mounts.getSkills();
     for (int j = 0; j < mountSkills.Length; j++)
     {
         skills[j].gameObject.SetActive(true);
         skills[j].initSkillData(mountSkills [j], ButtonSkill.STATE_CANLEARN);
         skills[j].fatherWindow = fatherWindow as MountsWindow;
     }
 }
 /** 更新被动技能 */
 private void updatePassiveSkill()
 {
     for (int j = 0; j < buttonSkill.Length; j++)
     {
         buttonSkill[j].gameObject.SetActive(false);
     }
     if (mounts != null)
     {
         Skill[] mainSkills = mounts.getSkills();
         if (mainSkills != null)
         {
             for (int i = 0; i < mainSkills.Length; i++)
             {
                 buttonSkill[i].gameObject.SetActive(true);
                 buttonSkill[i].initSkillData(mainSkills [i], ButtonSkill.STATE_LEARNED);
             }
         }
     }
 }
Beispiel #4
0
 /** 更新技能信息 */
 private void updateSkillInfo(Mounts mounts)
 {
     if (mounts == null)
     {
         skillPoint.SetActive(false);
         return;
     }
     Skill[] mainSkills = mounts.getSkills();
     for (int j = 0; j < passiveSkill.Length; j++)
     {
         passiveSkill[j].gameObject.SetActive(false);
     }
     if (mainSkills != null && mainSkills.Length > 0)
     {
         for (int i = 0; i < mainSkills.Length; i++)
         {
             passiveSkill[i].gameObject.SetActive(true);
             passiveSkill[i].initSkillData(mainSkills [i], ButtonSkill.STATE_CANLEARN);
             passiveSkill[i].expbar.gameObject.SetActive(false);
         }
     }
 }