summaryrefslogtreecommitdiff
path: root/Source/Asura.Framework/scripts/component.lua
blob: 9306f3bf8733ce74de0fd847b9c6a95329de16d5 (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
30
AsuraEngine.Component = AsuraEngine.Class("Component")

local Component = AsuraEngine.Component

-- Component要显示在inspector的变量
Component.gameobject = AsuraEngine.Type.GameObject

function Component.Extend(cname)
	self.base(cname)
	assert(Component.components[cname] == nil)
	
end 

function Component:Ctor(gameobject)
	self.gameobject = gameobject
end

function Component:OnEvent(e)

end

function Component:OnUpdate(ms)

end

function Component:OnDraw() 

end

return Component