core/assets: add a way to deactivate sprite animation
This commit is contained in:
parent
1cc8acd4c3
commit
d30f28322a
1 changed files with 5 additions and 1 deletions
|
@ -42,6 +42,8 @@ function Assets:new()
|
|||
self:clearTileset()
|
||||
|
||||
self.images = {}
|
||||
|
||||
self.isActive = true
|
||||
end
|
||||
|
||||
function Assets:init()
|
||||
|
@ -68,7 +70,9 @@ function Assets:clear()
|
|||
end
|
||||
|
||||
function Assets:update(dt)
|
||||
if (self.isActive) then
|
||||
self:animationsUpdate(dt)
|
||||
end
|
||||
end
|
||||
|
||||
-- SFX et Musique
|
||||
|
|
Loading…
Reference in a new issue