AsuraEngine.Component = AsuraEngine.Class("Component") local Component = AsuraEngine.Component -- Component要显示在inspector的变量 Component.entity = AsuraEngine.Type.Entity function Component.Extend(cname) self.base(cname) assert(Component.components[cname] == nil) end function Component:Ctor(entity) self.entity = entity end function Component:OnEvent(e) end function Component:OnUpdate(ms) end function Component:OnDraw() end return Component