void Start () { Application.RegisterLogCallback(ShowTips); new LuaResLoader(); state = new LuaState(); state.Start(); LuaBinder.Bind(state); state.DoFile("Test.lua"); state.LuaGC(LuaGCOptions.LUA_GCCOLLECT); }
void Start () { #if UNITY_5 Application.logMessageReceived += ShowTips; #else Application.RegisterLogCallback(ShowTips); #endif new LuaResLoader(); state = new LuaState(); state.Start(); LuaBinder.Bind(state); state.DoFile("Test.lua"); state.LuaGC(LuaGCOptions.LUA_GCCOLLECT); state.LogGC = true; }
void Start () { if (IntPtr.Size == 8) Debugger.Log("64 go"); Application.RegisterLogCallback(ShowTips); new LuaResLoader(); state = new LuaState(); state.Start(); LuaBinder.Bind(state); state.DoFile("Test.lua"); state.LuaGC(LuaGCOptions.LUA_GCCOLLECT); state.LogGC = true; state.LuaRawGlobal("xxoo"); string error = null; int n = state.CheckInteger(-1, out error); Debugger.Log("xxoo {0}", n); }
void Start() { #if UNITY_5 Application.logMessageReceived += ShowTips; #else Application.RegisterLogCallback(ShowTips); #endif new LuaResLoader(); state = new LuaState(); state.Start(); LuaBinder.Bind(state); state.DoFile("TestPerf.lua"); state.LuaGC(LuaGCOptions.LUA_GCCOLLECT); state.LogGC = false; Debug.Log(typeof(List<int>).BaseType); }