AsuraEngine.Component = AsuraEngine.Class("Component") local Component = AsuraEngine.Component --Component.entity = AsuraEngine.Type.GameObject --派生新的组件 function Component.Sub(cname) assert(Component.components[cname] == nil) end function Component:Ctor(go) self.entity = go end function Component:OnEvent(e) end function Component:OnUpdate(ms) end function Component:OnDraw() end