+ more stop music triggers

This commit is contained in:
FajsiEx 2021-11-21 16:34:12 +01:00
parent 51073ab614
commit 580e0e2efe
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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