blob: 98baf0dd7a086d08345641ee054cbe39ceb66e79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
AsuraEngine.Animator = AsuraEngine.Component.Sub("Animator")
local Animator = AsuraEngine.Animator
function Animator:Ctor(entity, animation)
self.base(entity)
self.spriteRenderer = entity:GetSpriteRenderer()
self.animation = animation
end
function Animator:SetAnimation(animation)
self.animation = animation
end
function Animator:GetAnimation()
return self.animation
end
function Animator:OnUpdate(dt)
end
function Animator:OnRender()
end
return Animator
|