* Make all active tween step toward the end. * @param timeDelta the duration from the previous step in seconds * @param layoutTimeDelta the duration from the previous step ignoring layer time scale in seconds
()
| 218 | * @param layoutTimeDelta the duration from the previous step ignoring layer time scale in seconds |
| 219 | */ |
| 220 | step(): void { |
| 221 | let writeIndex = 0; |
| 222 | for ( |
| 223 | let readIndex = 0; |
| 224 | readIndex < this._activeTweens.length; |
| 225 | readIndex++ |
| 226 | ) { |
| 227 | const tween = this._activeTweens[readIndex]; |
| 228 | |
| 229 | tween.step(); |
| 230 | if (!tween.hasFinished()) { |
| 231 | this._activeTweens[writeIndex] = tween; |
| 232 | writeIndex++; |
| 233 | } |
| 234 | } |
| 235 | this._activeTweens.length = writeIndex; |
| 236 | } |
| 237 | |
| 238 | /** |
| 239 | * Add a tween on one value. |
nothing calls this directly
no test coverage detected