require "luanet"
luanet.load_assembly("System")
luanet.load_assembly("TestLuaInterface")
Int32 = luanet.import_type("System.Int32")
Program = luanet.import_type("TestLuaInterface.Program")
program = Program()
--print(program.name)
--program:TestFunc1()
--program:TestFunc()
--void,length = program:TestOut("shuai")
--print(void,length)
void,count = program:TestRef("liu",10)
print(void)
print(count)
--num = Int32.Parse("12345")
--print(num)
--ulua
--Objs2Spawn = 5
luanet.load_assembly('UnityEngine')
GameObject = luanet.import_type('UnityEngine.GameObject')
ParticleSystem = luanet.import_type('UnityEngine.ParticleSystem')
particles = {}
for i = 1, Objs2Spawn, 1 do
local newGameObj = GameObject('NewObj' .. tostring(i))
local ps = newGameObj:AddComponent(luanet.ctype(ParticleSystem))
ps:Stop()
table.insert(particles, ps)
end
var2read = 42