public override void update_() { thickness.maxValue = maxThickness(); float inc = (maxDimention - minDimention) / partitions; float inc_ = (maxThickness() - minThickness) / partitions; radius = minDimention + dimention1.value * inc; // t = minThickness + thickness.value * inc_; t = thickness.value; radius = (float)Tortion.truncate(radius, 1000); t = (float)Tortion.truncate(t, 1000); dimention1.transform.parent.GetComponent <Text>().text = labelA + ": " + radius + " " + units; thickness.transform.parent.GetComponent <Text>().text = labelC + ": " + t + " " + units; radius = radius / 100; t = t / 100; }
public override void update_() { thickness.maxValue = maxThickness(); float inc = (maxDimention - minDimention) / partitions; float inc_ = (maxThickness() - minThickness) / partitions; height = minDimention + dimention1.value * inc; width = minDimention + dimention2.value * inc; // t = minThickness + thickness.value * inc_; t = thickness.value; height = (float)Tortion.truncate(height, 1000); width = (float)Tortion.truncate(width, 1000); t = (float)Tortion.truncate(t, 1000); dimention1.transform.parent.GetComponent <Text>().text = labelA + ": " + height + " " + units; dimention2.transform.parent.GetComponent <Text>().text = labelB + ": " + width + " " + units; thickness.transform.parent.GetComponent <Text>().text = labelC + ": " + t + " " + units; height = height / 100; width = width / 100; t = t / 100; }