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