【测试】oninit

This commit is contained in:
wxd-gaming
2025-01-09 20:25:16 +08:00
parent 396700afa3
commit b0df9649bf
4 changed files with 35 additions and 65 deletions

View File

@@ -44,15 +44,17 @@ function ddd()
print("ddddddd")
end
local test = TestClass.new()
local test2 = TestClass.new()
test:Name("t1")
test:Level(2)
function TestClass.onInit()
local test = TestClass.new()
local test2 = TestClass.new()
test:Name("t1")
test:Level(2)
test2:Name("t2")
test2:Level(2)
test2:Name("t2")
test2:Level(2)
print("230 - 220 * 0.5", 230 - 220 * 0.5)
print("230 - 220 * 0.5", 230 - 220 * 0.5)
end
--local tmp_number = {}
--print("测试 tonumber ", tonumber(tmp_number["t1"]))