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