blob: 8c8a185fc30717e435bf94b77f63d6c550e9980d (
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
|
AsuraEngine.Animator = AsuraEngine.Component.Sub("Animator")
local Animator = AsuraEngine.Animator
function Animator:Ctor(go, animation)
self.base(go)
self.spriteRenderer = go: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
|