+ stop music trigger to song transition
This commit is contained in:
parent
93d02aef74
commit
afb88bd6b4
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
local common = require('common.common');
|
||||||
|
|
||||||
game.LoadSkinSample('song_transition_screen/transition_enter.wav');
|
game.LoadSkinSample('song_transition_screen/transition_enter.wav');
|
||||||
|
|
||||||
local refBgImage = gfx.CreateSkinImage("songtransition/bg_old.png", 0)
|
local refBgImage = gfx.CreateSkinImage("songtransition/bg_old.png", 0)
|
||||||
|
@ -75,6 +77,7 @@ end
|
||||||
|
|
||||||
function render(deltaTime)
|
function render(deltaTime)
|
||||||
if not wasEnterSfxPlayed then
|
if not wasEnterSfxPlayed then
|
||||||
|
common.stopMusic();
|
||||||
game.PlaySample('song_transition_screen/transition_enter.wav');
|
game.PlaySample('song_transition_screen/transition_enter.wav');
|
||||||
wasEnterSfxPlayed = true;
|
wasEnterSfxPlayed = true;
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue