From 189511e751976628e33aecb2d8c82f1b4b448065 Mon Sep 17 00:00:00 2001 From: oc Date: Mon, 22 Apr 2019 18:44:16 +0800 Subject: [PATCH] playBgm afterLoad --- project/functions.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/project/functions.js b/project/functions.js index 764ce551..b526890b 100644 --- a/project/functions.js +++ b/project/functions.js @@ -979,7 +979,12 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = // TODO:增加自己的一些读档处理 // 切换到对应的楼层 - core.changeFloor(data.floorId, null, data.hero.loc, 0, callback, true); + core.changeFloor(data.floorId, null, data.hero.loc, 0, function () { + // TODO:可以在这里设置读档后播放BGM + // if (core.getFlag("bgm", 0)==1) core.playBgm("bgm.mp3"); + + if (callback) callback(); + }, true); }, "updateStatusBar": function () { // 更新状态栏