* Remove a tween. * @param identifier Unique id to identify the tween
(identifier: string)
| 385 | * @param identifier Unique id to identify the tween |
| 386 | */ |
| 387 | removeTween(identifier: string) { |
| 388 | const tween = this._tweens.get(identifier); |
| 389 | if (!tween) { |
| 390 | return; |
| 391 | } |
| 392 | if (tween.isPlaying()) { |
| 393 | this._removeActiveTween(tween); |
| 394 | } |
| 395 | this._tweens.delete(identifier); |
| 396 | } |
| 397 | |
| 398 | _addActiveTween( |
| 399 | tween: TweenInstance<float> | TweenInstance<Array<float>> |
no test coverage detected