Ejemplo n.º 1
0
    void updateStats(GameObject skillDisplay, string section, SkillLevel level)
    {
        Text power = skillDisplay.transform.Find(section + "/Power/PowerVal").GetComponent <Text>();

        power.text = level.getPower().ToString();

        Text speed = skillDisplay.transform.Find(section + "/Speed/SpeedVal").GetComponent <Text>();

        speed.text = level.getSpeed().ToString();

        Text range = skillDisplay.transform.Find(section + "/Range/RangeVal").GetComponent <Text>();

        range.text = level.getRange().ToString();
    }