summaryrefslogtreecommitdiff
path: root/Source/Asura.Framework/scripts/component.lua
blob: ad29efa920a2de93aa3effff5bc9da1db6461cfe (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.Sub(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