@@ -7,22 +7,22 @@ public static class MaterialTweens
77 public static Tween TweenColor ( this Material material , Color to , float duration ) =>
88 Tweening . To ( getter : ( ) => material . color ,
99 setter : color => material . color = color ,
10- to , duration ) . SetTarget ( material ) ;
10+ to , duration ) ;
1111
1212 public static Tween TweenAlpha ( this Material material , float to , float duration ) =>
1313 Tweening . To ( getter : ( ) => material . color . a ,
1414 setter : alpha => material . color = new Color ( material . color . r , material . color . g , material . color . b , alpha ) ,
15- to , duration ) . SetTarget ( material ) ;
15+ to , duration ) ;
1616
1717 public static Tween TweenMainTextureScale ( this Material material , Vector2 to , float duration ) =>
1818 Tweening . To ( getter : ( ) => material . mainTextureScale ,
1919 setter : mainTextureScale => material . mainTextureScale = mainTextureScale ,
20- to , duration ) . SetTarget ( material ) ;
20+ to , duration ) ;
2121
2222 public static Tween TweenMainTextureOffset ( this Material material , Vector2 to , float duration ) =>
2323 Tweening . To ( getter : ( ) => material . mainTextureOffset ,
2424 setter : mainTextureOffset => material . mainTextureOffset = mainTextureOffset ,
25- to , duration ) . SetTarget ( material ) ;
25+ to , duration ) ;
2626
2727 }
2828
0 commit comments