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