protected void MassSetLevel(IntRange level) { foreach (var gizmo in AffectedGizmos) { gizmo.comp.Level = level.Clamp(gizmo.comp.Target); } }
private void clampValueToRange() { _value = _range.Clamp(_value); }
public void SetValue(int newValue) { Debug.Log("New counter value: " + newValue); destinationValue = valueRange.Clamp(newValue); StartRotating(); }