diff options
author | chai <chaifix@163.com> | 2019-03-19 23:06:27 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-19 23:06:27 +0800 |
commit | 1497dccd63a84b7ee2b229b1ad9c5c02718f2a78 (patch) | |
tree | f8d1bff50da13e126d08c7345653e002e293202d /samples/Hello/scripts/components/fireball.lua | |
parent | 5e2a973516e0729b225da9de0b03015dc5854ac4 (diff) |
*rename
Diffstat (limited to 'samples/Hello/scripts/components/fireball.lua')
-rw-r--r-- | samples/Hello/scripts/components/fireball.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/samples/Hello/scripts/components/fireball.lua b/samples/Hello/scripts/components/fireball.lua new file mode 100644 index 0000000..8b31228 --- /dev/null +++ b/samples/Hello/scripts/components/fireball.lua @@ -0,0 +1,28 @@ +--ӳcomponent +--lua require룬package.load +local Spark = require("scripts/spark.lua") +local Fireball = AsuraEngine.Component.Extend("Fireball") +-- µķǺ֣ͣʾڱ༭УҪʾڱ༭Уһʼֵ +-- жͣnilҪʾڱ༭ +Fireball.name = "" +Fireball.position = 1 +Fireball.image = nil +Fireball.spark = Spark.New() + +function Fireball:OnEnable() + self.image = self.gameobject.GetComponent(AsuraEngine.Image) +end + +function Fireball:OnEvent(e) + +end + +function Fireball:OnUpdate(ms) + +end + +function Fireball:OnDraw() + +end + +return Fireball
\ No newline at end of file |