* Play (and optionally switch to) an animation, identical to Sprite#play. * @param {string} [name] - animation id to play; omit to resume * @param {string|Function|object} [options] - loop / chain / completion behavior * @returns {Sprite3d} Reference to this object for method chaining
(name, options)
| 442 | * @returns {Sprite3d} Reference to this object for method chaining |
| 443 | */ |
| 444 | play(name, options) { |
| 445 | this.animationpause = false; |
| 446 | if (name !== undefined) { |
| 447 | this.setCurrentAnimation(name, options); |
| 448 | } |
| 449 | return this; |
| 450 | } |
| 451 | |
| 452 | /** |
| 453 | * Pause the current animation, freezing the current frame (see {@link Sprite#pause}). |
nothing calls this directly
no test coverage detected