summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-framework/scripts/component.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-25 23:46:59 +0800
committerchai <chaifix@163.com>2019-03-25 23:46:59 +0800
commit03b3b8ae80559745f98ef94569b421adddeb441f (patch)
tree7bf46892fef7453d4c25172333bd4fbddb29ee16 /source/libs/asura-lib-framework/scripts/component.lua
parent82956beb1fe17e1226327638c8ab22b5f5adfc1d (diff)
*misc
Diffstat (limited to 'source/libs/asura-lib-framework/scripts/component.lua')
-rw-r--r--source/libs/asura-lib-framework/scripts/component.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/libs/asura-lib-framework/scripts/component.lua b/source/libs/asura-lib-framework/scripts/component.lua
index 9306f3b..b560bd3 100644
--- a/source/libs/asura-lib-framework/scripts/component.lua
+++ b/source/libs/asura-lib-framework/scripts/component.lua
@@ -3,7 +3,7 @@ AsuraEngine.Component = AsuraEngine.Class("Component")
local Component = AsuraEngine.Component
-- Component要显示在inspector的变量
-Component.gameobject = AsuraEngine.Type.GameObject
+Component.entity = AsuraEngine.Type.Entity
function Component.Extend(cname)
self.base(cname)
@@ -11,8 +11,8 @@ function Component.Extend(cname)
end
-function Component:Ctor(gameobject)
- self.gameobject = gameobject
+function Component:Ctor(entity)
+ self.entity = entity
end
function Component:OnEvent(e)