buildAnimations(sprite) {
        this.animations.forEach(anim => {
            sprite.buildAnimation(anim);
        });
    }
/**
     * build animation for the specified sprite.
     * @param sprite {Sprite} sprite that is being instanciate
     */
build animation for the specified sprite.
@param sprite {Sprite} sprite that is being instanciate
build animation for the specified sprite . @param sprite { Sprite } sprite that is being instanciate
buildAnimations(sprite) {
        this.animations.forEach(anim => {
            sprite.buildAnimation(anim);
        });
    }
buildAnimations ( sprite ) { this . animations . forEach ( anim => { sprite . buildAnimation ( anim ) ; } ) ; }
build animation for the specified sprite.
build animation for the specified sprite .