From 60390ed1a7cdb243c233ff30c61bb84e35ebe302 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 7 Sep 2019 20:59:44 +0200 Subject: [PATCH] feat(assets/animator): send the callback when the animation end --- gamecore/modules/assets/animator.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/gamecore/modules/assets/animator.lua b/gamecore/modules/assets/animator.lua index b9d7a0f..9a42ba8 100644 --- a/gamecore/modules/assets/animator.lua +++ b/gamecore/modules/assets/animator.lua @@ -60,6 +60,7 @@ function Animator:update(dt) if self.frameTimer > 1 then self.frameTimer = 0 if self.frame == self.animationData.endAt then + self:sendCallback() if not (self.animationData.pauseAtEnd) then self.frame = self.animationData.loop end