mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Fix sound stuff
This commit is contained in:
parent
238b11575f
commit
caa7495089
@ -13,7 +13,7 @@ export interface IAssetData {
|
||||
logicType?: string;
|
||||
maskType?: string;
|
||||
credits?: string;
|
||||
soundSample?: number;
|
||||
soundSample?: { id?: number, noPitch?: boolean };
|
||||
action?: { link?: string, startState?: number };
|
||||
spritesheet?: ISpritesheet;
|
||||
dimensions?: IAssetDimension;
|
||||
|
@ -44,7 +44,9 @@ export class FurnitureSoundBlockLogic extends FurnitureMultiStateLogic
|
||||
|
||||
if(!asset.soundSample) return;
|
||||
|
||||
this._sampleId = asset.soundSample;
|
||||
this._sampleId = asset.soundSample.id;
|
||||
this._noPitch = asset.soundSample.noPitch;
|
||||
|
||||
this.updateModel();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user