private float ClampValueToMaxAllowed(float val) { if (Mathf.Abs(val) > this.m_MaxAllowedScalar) { return (this.m_MaxAllowedScalar * Mathf.Sign(val)); } return val; }