void Start() { Application.logMessageReceived += this.log; runCount = 10; testItems = new TestItem[17]; for (int i = 0; i <= 10; ++i) { if (i == 0 || i == 1 || i == 10) { testItems[i] = new TestDllWithTrans(this, i, transform); } else { testItems[i] = new TestDll(this, i); } } testItems[11] = new TestEmptyFunc(this, 11); testItems[12] = new TestGetValue(this, 12, "_V0"); testItems[13] = new TestGetValue(this, 13, "_V1"); testItems[14] = new TestGetValue(this, 14, "_V2"); testItems[15] = new TestGetValue(this, 15, "_V3"); testItems[16] = new TestGetValue(this, 16, "_V4"); StartCoroutine(Init()); }
void Start() { Application.logMessageReceived += this.log; luaEnv = new LuaEnv(); scriptEnv = luaEnv.NewTable(); LuaTable meta = luaEnv.NewTable(); meta.Set("__index", luaEnv.Global); scriptEnv.SetMetaTable(meta); meta.Dispose(); luaEnv.DoString(luaScript.text, "LuaBehaviour", scriptEnv); scriptEnv.Get("GC", out mGC); scriptEnv.Get("JitSwitch", out mJitSwitch); scriptEnv.Get("Version", out mVersion); runCount = 1; testItems = new TestItem[17]; for (int i = 0; i <= 10; ++i) { testItems[i] = new TestLua(this, i, transform); } testItems[11] = new TestEmptyFunc(this, 11); testItems[12] = new TestGetLuaValue(this, 12, "_V0"); testItems[13] = new TestGetLuaValue(this, 13, "_V1"); testItems[14] = new TestGetLuaValue(this, 14, "_V2"); testItems[15] = new TestGetLuaValue(this, 15, "_V3"); testItems[16] = new TestGetLuaValue(this, 16, "_V4"); }
void Start() { runCount = 10; testItems = new TestItem[17]; for (int i = 0; i <= 10; ++i) { testItems[i] = new TestLua(this, i, transform); } testItems[11] = new TestEmptyFunc(this, 11); testItems[12] = new TestGetLuaValue(this, 12, "_V0"); testItems[13] = new TestGetLuaValue(this, 13, "_V1"); testItems[14] = new TestGetLuaValue(this, 14, "_V2"); testItems[15] = new TestGetLuaValue(this, 15, "_V3"); testItems[16] = new TestGetLuaValue(this, 16, "_V4"); state.DoFile("TestPerf.lua"); gcFunc = state.GetFunction("GC"); }
void Start() { Application.logMessageReceived += this.log; l = new LuaSvr(); l.init(null, () => { l.start("perf"); }); runCount = 10; testItems = new TestItem[17]; for (int i = 0; i <= 10; ++i) { testItems[i] = new TestLua(this, i, transform); } testItems[11] = new TestEmptyFunc(this, 11); testItems[12] = new TestGetLuaValue(this, 12, "_V0"); testItems[13] = new TestGetLuaValue(this, 13, "_V1"); testItems[14] = new TestGetLuaValue(this, 14, "_V2"); testItems[15] = new TestGetLuaValue(this, 15, "_V3"); testItems[16] = new TestGetLuaValue(this, 16, "_V4"); }