From 2672874a7f18d3b3e8c5b5e1817506490e263885 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Sun, 26 Nov 2023 14:29:05 +0900 Subject: [PATCH] =?UTF-8?q?operationType=E3=81=A8soundType=E3=81=AE?= =?UTF-8?q?=E6=B7=B7=E5=90=8C=E3=82=92=E9=98=B2=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/scripts/sound.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/scripts/sound.ts b/packages/frontend/src/scripts/sound.ts index 9f3a400f91c1..f7a7017f8dfd 100644 --- a/packages/frontend/src/scripts/sound.ts +++ b/packages/frontend/src/scripts/sound.ts @@ -146,9 +146,9 @@ export async function loadAudio(soundStore: SoundStore, options?: { useCache?: b * 既定のスプライトを再生する * @param type スプライトの種類を指定 */ -export function play(type: OperationType) { - const sound = defaultStore.state[`sound_${type}`]; - if (_DEV_) console.log('play', type, sound); +export function play(operationType: OperationType) { + const sound = defaultStore.state[`sound_${operationType}`]; + if (_DEV_) console.log('play', operationType, sound); if (sound.type == null || !canPlay) return; canPlay = false;