+ more stop music triggers
This commit is contained in:
parent
51073ab614
commit
580e0e2efe
|
@ -1,5 +1,6 @@
|
|||
local Easing = require("common.easings");
|
||||
local Footer = require("components.footer");
|
||||
local common = require('common.common');
|
||||
|
||||
local VolforceWindow = require("components.volforceWindow")
|
||||
|
||||
|
@ -38,6 +39,7 @@ end
|
|||
|
||||
local function handleSfx()
|
||||
if not bgSfxPlayed then
|
||||
common.stopMusic();
|
||||
game.PlaySample("challenge_result.wav", true)
|
||||
bgSfxPlayed = true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
local common = require('common.common');
|
||||
|
||||
local transitionEnterAnimation;
|
||||
local transitionLeaveAnimation;
|
||||
|
||||
|
@ -19,6 +21,8 @@ function loadAnimations()
|
|||
end
|
||||
|
||||
function render(deltaTime)
|
||||
common.stopMusic();
|
||||
|
||||
if not transitionEnterAnimation then
|
||||
loadAnimations()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue