diff options
author | chai <chaifix@163.com> | 2019-01-20 19:42:03 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-01-20 19:42:03 +0800 |
commit | 0c65330f29d214cdfd810e83096669c5f2c20bee (patch) | |
tree | 28ce1bb02e29e18413e1ca5f18bba9a6e4bfc115 /Source/Asura.Framework/Component.lua | |
parent | d570df7decd9a4f19c66b2d2d57a54652f0f9b7e (diff) |
*misc
Diffstat (limited to 'Source/Asura.Framework/Component.lua')
-rw-r--r-- | Source/Asura.Framework/Component.lua | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/Source/Asura.Framework/Component.lua b/Source/Asura.Framework/Component.lua index 54bd3c7..027c066 100644 --- a/Source/Asura.Framework/Component.lua +++ b/Source/Asura.Framework/Component.lua @@ -1,9 +1,21 @@ +local Component = Class() -local Component = Class(function() - self.gameobject = nil +Component.gameobject = AsuraEngine.Type.GameObject -end) +function Component:Ctor(go) + self.gameobject = go +end -Component.gameobject = AsuraEngine.Type.GameObject +function Component:OnEvent(e) + +end + +function Component:OnUpdate(ms) + +end + +function Component:OnDraw() + +end -return Component +return Component
\ No newline at end of file |