private void SetTowerAttackTowerProperties() { AttackTowerValues.transform.GetChild(0).GetComponent <Text>().text = skillProperties.GetDamage().ToString(); AttackTowerValues.transform.GetChild(1).GetComponent <Text>().text = skillProperties.GetCooldown().ToString(); AttackTowerValues.transform.GetChild(2).GetComponent <Text>().text = skillProperties.GetRange().ToString(); AttackTowerValues.transform.GetChild(3).GetComponent <Text>().text = thisButton.effect; }
public void SetValues(SkillsProperties sp) { damage = sp.GetDamage(); cooldown = sp.GetCooldown(); range = sp.GetRange(); effectDuration = sp.GetEffectDuration(); burnRate = sp.GetBurnRate(); slowFactor = sp.GetSlowFactor(); rangeRadius = sp.GetRangeRadius(); }