public override void ChangeValue(float amount) { if (useConstant) { constantValue += amount; } else { variable.ChangeValue(amount); } }