shareSoundToTarget (soundIndex, targetId) {
        this.emit('shareSoundToTarget*');
        const originalSound = this.editingTarget.getSounds()[soundIndex];
        const clone = Object.assign({}, originalSound);
        const target = this.runtime.getTargetById(targetId);
        return loadSound(clone, this.runtime, target.sprite.soundBank).then(() => {
            if (target) {
                target.addSound(clone);
                this.emitTargetsUpdate();
            }
        });
    }
/**
     * Called when sounds are dragged from editing target to another target.
     * @param {!number} soundIndex Index of the sound of the editing target to share.
     * @param {!string} targetId Id of target to add the sound.
     * @return {Promise} Promise that resolves when the new sound has been loaded.
     */
Called when sounds are dragged from editing target to another target.
@param {!number} soundIndex Index of the sound of the editing target to share.
@param {!string} targetId Id of target to add the sound.
@return {Promise} Promise that resolves when the new sound has been loaded.
Called when sounds are dragged from editing target to another target . @param { !number } soundIndex Index of the sound of the editing target to share . @param { !string } targetId Id of target to add the sound . @return { Promise } Promise that resolves when the new sound has been loaded .
shareSoundToTarget (soundIndex, targetId) {
        this.emit('shareSoundToTarget*');
        const originalSound = this.editingTarget.getSounds()[soundIndex];
        const clone = Object.assign({}, originalSound);
        const target = this.runtime.getTargetById(targetId);
        return loadSound(clone, this.runtime, target.sprite.soundBank).then(() => {
            if (target) {
                target.addSound(clone);
                this.emitTargetsUpdate();
            }
        });
    }
shareSoundToTarget ( soundIndex , targetId ) { this . emit ( 'shareSoundToTarget*' ) ; const originalSound = this . editingTarget . getSounds ( ) [ soundIndex ] ; const clone = Object . assign ( { } , originalSound ) ; const target = this . runtime . getTargetById ( targetId ) ; return loadSound ( clone , this . runtime , target . sprite . soundBank ) . then ( ( ) => { if ( target ) { target . addSound ( clone ) ; this . emitTargetsUpdate ( ) ; } } ) ; }
Called when sounds are dragged from editing target to another target.
Called when sounds are dragged from editing target to another target .