private void UpdateDetail(int selectedIndex) { UnitInfo unitInfo = GetUnitInfo(selectedIndex); this.description.name.GetComponent <Text>().text = unitInfo.name; this.description.level.GetComponent <Text>().text = PartyDB.GetPartyLevel().ToString(); this.description.skillPoint.GetComponent <Text>().text = GetAvailableSkillPoint(unitInfo.nameInCode).ToString(); }
private int GetAvailableSkillPoint(string unitName) { return(PartyDB.GetPartyLevel() - GetAllUsedSkillPoint(unitName)); }