scenes/boost: stop sprite animations when the pause menu is active
This commit is contained in:
parent
7b2a5298ba
commit
a7676297ca
2 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,7 @@ end
|
|||
function ResumeWidget:action()
|
||||
self.menu.isActive = false
|
||||
self.menu.isVisible = false
|
||||
self.menu.controller.assets.isActive = true
|
||||
end
|
||||
|
||||
function RestartWidget:new(menu, font)
|
||||
|
|
|
@ -113,9 +113,11 @@ function BoostLevel:update(dt)
|
|||
self.menusystem.menus["pauseMenu"].isActive = true
|
||||
self.menusystem.menus["pauseMenu"].isVisible = true
|
||||
self.menusystem.menus["pauseMenu"]:getFocus()
|
||||
self.assets.isActive = false
|
||||
else
|
||||
self.menusystem.menus["pauseMenu"].isActive = false
|
||||
self.menusystem.menus["pauseMenu"].isVisible = false
|
||||
self.assets.isActive = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue