blob: a31b31c71d0e169db0c816497a09a5e7b9556cb2 (
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
28
29
|
AsuraEngine.Component = AsuraEngine.Class("Component")
local Component = AsuraEngine.Component
-- Component要显示在inspector的变量
Component.mEntity = AsuraEngine.Type.GameObject
function Component.Sub(cname)
assert(Component.components[cname] == nil)
end
function Component:Ctor(go)
self.mEntity = go
end
function Component:OnEvent(e)
end
function Component:OnUpdate(ms)
end
function Component:OnDraw()
end
return Component
|