Commit b71bf1c4 authored by love_飞影's avatar love_飞影

fix: 修复只处理了一种 destroy 的情况

parent 4410bf15
Pipeline #26465 passed with stages
in 6 minutes and 50 seconds
......@@ -56,12 +56,8 @@ export default async (move: MsgMove) => {
break;
}
switch (reason) {
case REASON_DESTROY:
playEffect(AudioActionType.SOUND_DESTROYED);
break;
default:
break;
if (reason & REASON_DESTROY) {
playEffect(AudioActionType.SOUND_DESTROYED);
}
// log出来看看
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment