fixed animation skipping one anim when looping
This commit is contained in:
@@ -16,7 +16,6 @@ local function errorHandler(err)
|
||||
end
|
||||
|
||||
local ok, result = pcall(require, "main")
|
||||
package.loaded.main = nil
|
||||
package.loaded.log = nil
|
||||
|
||||
package.path = defaultPath
|
||||
|
||||
@@ -199,6 +199,7 @@ end
|
||||
--- @return Animation self The animation instance
|
||||
function Animation:start()
|
||||
self.currentSequence = 1
|
||||
self.timer = nil
|
||||
if(self.sequenceCallbacks[self.currentSequence])then
|
||||
if(self.sequenceCallbacks[self.currentSequence].start) then
|
||||
self.sequenceCallbacks[self.currentSequence].start(self.element)
|
||||
|
||||
Reference in New Issue
Block a user