예제 #1
0
 public void UpdateSkillMenu()
 {
     player.UpdateSkillValues();
     foreach (GameObject g in GameObject.FindGameObjectsWithTag("skillPanel"))
     {
         skill s = player.playerSkills.Find(x => x.skillName.Contains(g.GetComponent <aSkillPanel>().skillName.text));
         g.GetComponent <aSkillPanel>().skillName.text     = s.skillName;
         g.GetComponent <aSkillPanel>().skillLevel.text    = "(" + s.level.ToString() + "/5)";
         g.GetComponent <aSkillPanel>().skillCoolDown.text = "Cool Down: " + s.coolDown.ToString();
         g.GetComponent <aSkillPanel>().skillCost.text     = "Cost: " + s.cost.ToString();
         g.GetComponent <aSkillPanel>().skillDesc.text     = s.desc;
     }
     skillPointsText.text = "Skill Points: " + player.skillPoints.ToString();
 }