* Stop a tween. * @param identifier Unique id to identify the tween * @param jumpToDest Move to destination
(identifier: string, jumpToDest: boolean)
| 370 | * @param jumpToDest Move to destination |
| 371 | */ |
| 372 | stopTween(identifier: string, jumpToDest: boolean) { |
| 373 | const tween = this._tweens.get(identifier); |
| 374 | if (!tween || tween.hasFinished()) { |
| 375 | return; |
| 376 | } |
| 377 | if (tween.isPlaying()) { |
| 378 | this._removeActiveTween(tween); |
| 379 | } |
| 380 | tween.stop(jumpToDest); |
| 381 | } |
| 382 | |
| 383 | /** |
| 384 | * Remove a tween. |
no test coverage detected