Skip to content

Commit c9f3221

Browse files
Updated documentation
1 parent fdbf71a commit c9f3221

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,22 @@ var instance = gameObject.AddTween(tween);
494494
Debug.Log(instance.target);
495495
```
496496

497+
### Await Decommission
498+
499+
The await decommission method will return an enumerator that will await the decommission of the Tween. This can be used in coroutines to wait for the Tween to finish or be cancelled.
500+
501+
```cs
502+
IEnumerator AwaitDecommission();
503+
```
504+
505+
### Await Decommission Async
506+
507+
The await decommission async method will return an awaitable that will await the decommission of the Tween. This can be used in async methods to wait for the Tween to finish or be cancelled.
508+
509+
```cs
510+
Awaitable AwaitDecommissionAsync();
511+
```
512+
497513
## Extensions
498514

499515
Tweens also provides extension methods that can be used to control the Tween module.
@@ -523,22 +539,6 @@ void CancelTweens(this GameObject target, bool includeChildren = false);
523539
gameObject.CancelTweens();
524540
```
525541

526-
### Await Decommission
527-
528-
The await decommission method will return an enumerator that will await the decommission of the Tween. This can be used in coroutines to wait for the Tween to finish or be cancelled.
529-
530-
```cs
531-
IEnumerator AwaitDecommission();
532-
```
533-
534-
### Await Decommission Async
535-
536-
The await decommission async method will return an awaitable that will await the decommission of the Tween. This can be used in async methods to wait for the Tween to finish or be cancelled.
537-
538-
```cs
539-
Awaitable AwaitDecommissionAsync();
540-
```
541-
542542
## Advanced Examples
543543

544544
Besides the many different types of Tweens and Tween Options, Tweens also provides a wide range of features that can be used to create advanced animations. The following sections will show you how to implemented some of these features to create advanced animation logic.

0 commit comments

Comments
 (0)