Skip to content

Commit f4185d2

Browse files
committed
Rename shadow tween extension methods
1 parent 4bcdf4e commit f4185d2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Runtime/Extensions/UI/ShadowTweens.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ namespace Zigurous.Tweening
55
{
66
public static class ShadowTweens
77
{
8-
public static Tween TweenEffectColor(this Shadow shadow, Color to, float duration) =>
8+
public static Tween TweenColor(this Shadow shadow, Color to, float duration) =>
99
Tweening.To(getter: () => shadow.effectColor,
1010
setter: effectColor => shadow.effectColor = effectColor,
1111
to, duration).SetTarget(shadow);
1212

13-
public static Tween TweenEffectDistance(this Shadow shadow, Vector2 to, float duration) =>
13+
public static Tween TweenAlpha(this Shadow shadow, float to, float duration) =>
14+
Tweening.To(getter: () => shadow.effectColor.a,
15+
setter: alpha => shadow.effectColor = new Color(shadow.effectColor.r, shadow.effectColor.g, shadow.effectColor.b, alpha),
16+
to, duration).SetTarget(shadow);
17+
18+
public static Tween TweenDistance(this Shadow shadow, Vector2 to, float duration) =>
1419
Tweening.To(getter: () => shadow.effectDistance,
1520
setter: effectDistance => shadow.effectDistance = effectDistance,
1621
to, duration).SetTarget(shadow);

0 commit comments

Comments
 (0)