private void SetNormalizedConstant(SerializedProperty curve, float totalValue) { float num = Mathf.Max(this.scalar.floatValue, 0.0001f); float num2 = totalValue / num; this.SetCurveConstant(curve, num2); }