summaryrefslogtreecommitdiff
path: root/Source/Samples/LuaxTest/script.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Samples/LuaxTest/script.lua')
-rw-r--r--Source/Samples/LuaxTest/script.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Samples/LuaxTest/script.lua b/Source/Samples/LuaxTest/script.lua
index 84bcba9..32bd8e8 100644
--- a/Source/Samples/LuaxTest/script.lua
+++ b/Source/Samples/LuaxTest/script.lua
@@ -52,6 +52,18 @@ function main()
print(Asura.EGender.BOY)
print(Asura.SimBoy.EHabits.Girls)
print(Asura.EHabits.Girls)
+ print(kid)
+
+ kid:Write(function()
+ return "kid:Write()"
+ end )
+ print(kid:Speak())
+
+ kid:Write(function()
+ return "kid:Write() 2"
+ end )
+ print(kid:Speak())
+
end
function err(msg)
print(msg)