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