@@ -17,7 +17,7 @@ public static class PropertyChaining
1717 /// <param name="tween">The tween to assign the value to.</param>
1818 /// <param name="target">The target component.</param>
1919 /// <returns>The tween itself to allow for chaining.</returns>
20- public static T SetTarget < T > ( this T tween , Component target ) where T : Tween
20+ public static T SetTarget < T > ( this T tween , Component target ) where T : Tween
2121 {
2222 if ( tween != null && target != null )
2323 {
@@ -36,7 +36,7 @@ public static T SetTarget<T>(this T tween, Component target) where T: Tween
3636 /// <param name="tween">The tween to assign the value to.</param>
3737 /// <param name="target">The target component.</param>
3838 /// <returns>The tween itself to allow for chaining.</returns>
39- public static T SetTarget < T > ( this T tween , GameObject target ) where T : Tween
39+ public static T SetTarget < T > ( this T tween , GameObject target ) where T : Tween
4040 {
4141 if ( tween != null && target != null )
4242 {
@@ -54,7 +54,7 @@ public static T SetTarget<T>(this T tween, GameObject target) where T: Tween
5454 /// <param name="tween">The tween to assign the value to.</param>
5555 /// <param name="id">The id to set.</param>
5656 /// <returns>The tween itself to allow for chaining.</returns>
57- public static T SetId < T > ( this T tween , int id ) where T : Tween
57+ public static T SetId < T > ( this T tween , int id ) where T : Tween
5858 {
5959 if ( tween != null ) {
6060 tween . id = id ;
@@ -70,7 +70,7 @@ public static T SetId<T>(this T tween, int id) where T: Tween
7070 /// <param name="tween">The tween to assign the value to.</param>
7171 /// <param name="index">The scene index to set.</param>
7272 /// <returns>The tween itself to allow for chaining.</returns>
73- public static T SetSceneIndex < T > ( this T tween , int index ) where T : Tween
73+ public static T SetSceneIndex < T > ( this T tween , int index ) where T : Tween
7474 {
7575 if ( tween != null ) {
7676 tween . sceneIndex = index ;
@@ -86,7 +86,7 @@ public static T SetSceneIndex<T>(this T tween, int index) where T: Tween
8686 /// <param name="tween">The tween to assign the value to.</param>
8787 /// <param name="ease">The ease to set.</param>
8888 /// <returns>The tween itself to allow for chaining.</returns>
89- public static T SetEase < T > ( this T tween , Ease ease ) where T : Tween
89+ public static T SetEase < T > ( this T tween , Ease ease ) where T : Tween
9090 {
9191 if ( tween != null ) {
9292 tween . ease = ease ;
@@ -102,7 +102,7 @@ public static T SetEase<T>(this T tween, Ease ease) where T: Tween
102102 /// <param name="tween">The tween to assign the value to.</param>
103103 /// <param name="duration">The duration to set.</param>
104104 /// <returns>The tween itself to allow for chaining.</returns>
105- public static T SetDuration < T > ( this T tween , float duration ) where T : Tween
105+ public static T SetDuration < T > ( this T tween , float duration ) where T : Tween
106106 {
107107 if ( tween != null ) {
108108 tween . duration = duration ;
@@ -118,7 +118,7 @@ public static T SetDuration<T>(this T tween, float duration) where T: Tween
118118 /// <param name="tween">The tween to assign the value to.</param>
119119 /// <param name="delay">The delay to set.</param>
120120 /// <returns>The tween itself to allow for chaining.</returns>
121- public static T SetDelay < T > ( this T tween , float delay ) where T : Tween
121+ public static T SetDelay < T > ( this T tween , float delay ) where T : Tween
122122 {
123123 if ( tween != null ) {
124124 tween . delay = delay ;
@@ -135,7 +135,7 @@ public static T SetDelay<T>(this T tween, float delay) where T: Tween
135135 /// <param name="loops">The number of loops to set.</param>
136136 /// <param name="loopType">The type of loop style to set.</param>
137137 /// <returns>The tween itself to allow for chaining.</returns>
138- public static T SetLoops < T > ( this T tween , int loops , LoopType loopType = LoopType . Restart ) where T : Tween
138+ public static T SetLoops < T > ( this T tween , int loops , LoopType loopType = LoopType . Restart ) where T : Tween
139139 {
140140 if ( tween != null )
141141 {
@@ -153,7 +153,7 @@ public static T SetLoops<T>(this T tween, int loops, LoopType loopType = LoopTyp
153153 /// <param name="tween">The tween to assign the value to.</param>
154154 /// <param name="reversed">True if the tween is to be played in reverse.</param>
155155 /// <returns>The tween itself to allow for chaining.</returns>
156- public static T SetReversed < T > ( this T tween , bool reversed = true ) where T : Tween
156+ public static T SetReversed < T > ( this T tween , bool reversed = true ) where T : Tween
157157 {
158158 if ( tween != null ) {
159159 tween . reversed = reversed ;
@@ -169,7 +169,7 @@ public static T SetReversed<T>(this T tween, bool reversed = true) where T: Twee
169169 /// <param name="tween">The tween to assign the value to.</param>
170170 /// <param name="snapping">True if interpolated values should be snapped to whole numbers.</param>
171171 /// <returns>The tween itself to allow for chaining.</returns>
172- public static T SetSnapping < T > ( this T tween , bool snapping = true ) where T : Tween
172+ public static T SetSnapping < T > ( this T tween , bool snapping = true ) where T : Tween
173173 {
174174 if ( tween != null ) {
175175 tween . snapping = snapping ;
@@ -185,7 +185,7 @@ public static T SetSnapping<T>(this T tween, bool snapping = true) where T: Twee
185185 /// <param name="tween">The tween to assign the value to.</param>
186186 /// <param name="recyclable">True if the tween is to be recycled.</param>
187187 /// <returns>The tween itself to allow for chaining.</returns>
188- public static T SetRecyclable < T > ( this T tween , bool recyclable ) where T : Tween
188+ public static T SetRecyclable < T > ( this T tween , bool recyclable ) where T : Tween
189189 {
190190 if ( tween != null ) {
191191 tween . recyclable = recyclable ;
@@ -201,7 +201,7 @@ public static T SetRecyclable<T>(this T tween, bool recyclable) where T: Tween
201201 /// <param name="tween">The tween to assign the value to.</param>
202202 /// <param name="autoStart">True if the tween is to be started automatically.</param>
203203 /// <returns>The tween itself to allow for chaining.</returns>
204- public static T SetAutoStart < T > ( this T tween , bool autoStart ) where T : Tween
204+ public static T SetAutoStart < T > ( this T tween , bool autoStart ) where T : Tween
205205 {
206206 if ( tween != null ) {
207207 tween . autoStart = autoStart ;
@@ -217,7 +217,7 @@ public static T SetAutoStart<T>(this T tween, bool autoStart) where T: Tween
217217 /// <param name="tween">The tween to assign the value to.</param>
218218 /// <param name="autoKill">True if the tween is to be killed automatically.</param>
219219 /// <returns>The tween itself to allow for chaining.</returns>
220- public static T SetAutoKill < T > ( this T tween , bool autoKill ) where T : Tween
220+ public static T SetAutoKill < T > ( this T tween , bool autoKill ) where T : Tween
221221 {
222222 if ( tween != null ) {
223223 tween . autoKill = autoKill ;
@@ -233,7 +233,7 @@ public static T SetAutoKill<T>(this T tween, bool autoKill) where T: Tween
233233 /// <param name="tween">The tween to assign the value to.</param>
234234 /// <param name="callback">The callback to invoke.</param>
235235 /// <returns>The tween itself to allow for chaining.</returns>
236- public static T OnUpdate < T > ( this T tween , TweenCallback callback ) where T : Tween
236+ public static T OnUpdate < T > ( this T tween , TweenCallback callback ) where T : Tween
237237 {
238238 if ( tween != null ) {
239239 tween . onUpdate += callback ;
@@ -249,7 +249,7 @@ public static T OnUpdate<T>(this T tween, TweenCallback callback) where T: Tween
249249 /// <param name="tween">The tween to assign the value to.</param>
250250 /// <param name="callback">The callback to invoke.</param>
251251 /// <returns>The tween itself to allow for chaining.</returns>
252- public static T OnStart < T > ( this T tween , TweenCallback callback ) where T : Tween
252+ public static T OnStart < T > ( this T tween , TweenCallback callback ) where T : Tween
253253 {
254254 if ( tween != null ) {
255255 tween . onStart += callback ;
@@ -265,7 +265,7 @@ public static T OnStart<T>(this T tween, TweenCallback callback) where T: Tween
265265 /// <param name="tween">The tween to assign the value to.</param>
266266 /// <param name="callback">The callback to invoke.</param>
267267 /// <returns>The tween itself to allow for chaining.</returns>
268- public static T OnStop < T > ( this T tween , TweenCallback callback ) where T : Tween
268+ public static T OnStop < T > ( this T tween , TweenCallback callback ) where T : Tween
269269 {
270270 if ( tween != null ) {
271271 tween . onStop += callback ;
@@ -281,7 +281,7 @@ public static T OnStop<T>(this T tween, TweenCallback callback) where T: Tween
281281 /// <param name="tween">The tween to assign the value to.</param>
282282 /// <param name="callback">The callback to invoke.</param>
283283 /// <returns>The tween itself to allow for chaining.</returns>
284- public static T OnLoop < T > ( this T tween , TweenCallback callback ) where T : Tween
284+ public static T OnLoop < T > ( this T tween , TweenCallback callback ) where T : Tween
285285 {
286286 if ( tween != null ) {
287287 tween . onLoop += callback ;
@@ -297,7 +297,7 @@ public static T OnLoop<T>(this T tween, TweenCallback callback) where T: Tween
297297 /// <param name="tween">The tween to assign the value to.</param>
298298 /// <param name="callback">The callback to invoke.</param>
299299 /// <returns>The tween itself to allow for chaining.</returns>
300- public static T OnComplete < T > ( this T tween , TweenCallback callback ) where T : Tween
300+ public static T OnComplete < T > ( this T tween , TweenCallback callback ) where T : Tween
301301 {
302302 if ( tween != null ) {
303303 tween . onComplete += callback ;
@@ -313,7 +313,7 @@ public static T OnComplete<T>(this T tween, TweenCallback callback) where T: Twe
313313 /// <param name="tween">The tween to assign the value to.</param>
314314 /// <param name="callback">The callback to invoke.</param>
315315 /// <returns>The tween itself to allow for chaining.</returns>
316- public static T OnKill < T > ( this T tween , TweenCallback callback ) where T : Tween
316+ public static T OnKill < T > ( this T tween , TweenCallback callback ) where T : Tween
317317 {
318318 if ( tween != null ) {
319319 tween . onKill += callback ;
0 commit comments