예제 #1
0
 void EnableUI()
 {
     if (ScrollContentView != null)
     {
         playerSkillList.Clear();
         selectedSkillList.Clear();
         playerSkillList   = SkillSystem.GetAblePlayerSkillList();
         selectedSkillList = SkillSystem.GetSelectSkillList();
         RefreshUI();
     }
 }
예제 #2
0
    public void RefreshPlayerSkillUI()
    {
        List <Skill> playerSkillList = SkillSystem.GetSelectSkillList();

        for (int i = 0; i < playerSkillList.Count; i++)
        {
            if (playerSkillList[i] != null)
            {
                playerSkillPanel.transform.GetChild(i).GetChild(0).GetComponent <Image>().enabled = true;
                playerSkillPanel.transform.GetChild(i).GetChild(0).GetComponent <Image>().sprite  = SkillSystem.GetSkillImage(playerSkillList[i].id);
            }
        }
        for (int i = playerSkillList.Count; i < 2; i++)
        {
            playerSkillPanel.transform.GetChild(i).GetChild(0).GetComponent <Image>().enabled = false;
        }
    }