Rename AacFlSettingCurveColor.WithKeyframes(...) to WithUnit(...):

- Fix inconsistency by renaming AacFlSettingCurveColor.WithKeyframes(...) to WithUnit(...).
- The previous method is obsoleted, but remains.
This commit is contained in:
Haï~
2024-08-17 08:03:28 +02:00
parent 207ffffb65
commit bddad26c0f
@@ -614,7 +614,16 @@ namespace AnimatorAsCode.V1
}
}
public void WithKeyframes(AacFlUnit unit, Action<AacFlSettingKeyframesColor> action) // FIXME: Should this be renamed?
/// Obsolete. Use `WithUnit()` instead.<br/>
/// Start defining the keyframes with a lambda expression, expressing the unit.
[Obsolete("This function was renamed to WithUnit(...)")]
public void WithKeyframes(AacFlUnit unit, Action<AacFlSettingKeyframesColor> action)
{
WithUnit(unit, action);
}
/// Start defining the keyframes with a lambda expression, expressing the unit.
public void WithUnit(AacFlUnit unit, Action<AacFlSettingKeyframesColor> action)
{
var mutatedKeyframesR = new List<Keyframe>();
var mutatedKeyframesG = new List<Keyframe>();