void Update() { if (luaEnv != null && Time.time - lastGCTime > GCInterval) { luaEnv.Tick(); luaEnv.GcStep(5 * 1024); //luaEnv.FullGc(); lastGCTime = Time.time; } }