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