* Pause a tween. * @param identifier Unique id to identify the tween
(identifier: string)
| 343 | * @param identifier Unique id to identify the tween |
| 344 | */ |
| 345 | pauseTween(identifier: string) { |
| 346 | const tween = this._tweens.get(identifier); |
| 347 | if (!tween || !tween.isPlaying() || tween.hasFinished()) { |
| 348 | return; |
| 349 | } |
| 350 | this._removeActiveTween(tween); |
| 351 | tween.pause(); |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | * Resume a tween. |
no test coverage detected