summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-framework/scripts/graphics/animator.lua
diff options
context:
space:
mode:
Diffstat (limited to 'source/libs/asura-lib-framework/scripts/graphics/animator.lua')
-rw-r--r--source/libs/asura-lib-framework/scripts/graphics/animator.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/libs/asura-lib-framework/scripts/graphics/animator.lua b/source/libs/asura-lib-framework/scripts/graphics/animator.lua
index c019dfa..fd2f979 100644
--- a/source/libs/asura-lib-framework/scripts/graphics/animator.lua
+++ b/source/libs/asura-lib-framework/scripts/graphics/animator.lua
@@ -8,9 +8,9 @@ local Animator = AsuraEngine.Animator
Animator.spriteRenderer = AsuraEngine.Type.SpriteRenderer
Animator.animation = AsuraEngine.Type.Animation
-function Animator:Ctor(gameobject, animation)
- self.base(gameobject)
- self.spriteRenderer = gameobject:GetSpriteRenderer()
+function Animator:Ctor(entity, animation)
+ self.base(entity)
+ self.spriteRenderer = entity:GetSpriteRenderer()
self.animation = animation
end