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

View File

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