Пример #1
0
 private void UpdateGauge(TargetPlate.GaugeParam param, GradientGauge gauge)
 {
     if (param == null || param.Colors == null || UnityEngine.Object.op_Equality((UnityEngine.Object)gauge, (UnityEngine.Object)null))
     {
         return;
     }
     gauge.UpdateColors(param.Colors);
     gauge.AnimateRangedValue(param.Current, param.Max, 0.0f);
 }
Пример #2
0
 private void UpdateGauge(TargetPlate.GaugeParam param, GradientGauge gauge, GradientGauge max_gauge = null)
 {
     if (param == null || param.Colors == null || UnityEngine.Object.op_Equality((UnityEngine.Object)gauge, (UnityEngine.Object)null))
     {
         return;
     }
     gauge.UpdateColors(param.Colors);
     gauge.AnimateRangedValue(param.Current, param.Max, 0.0f);
     if (!UnityEngine.Object.op_Implicit((UnityEngine.Object)max_gauge))
     {
         return;
     }
     max_gauge.UpdateValue(param.MaxValue);
     gauge.UpdateValue(Mathf.Clamp01(gauge.Value * max_gauge.Value));
 }