void OnDestroy() { // DuktapeDebugger.Shutdown(); if (vm.context != null) { DuktapeDLL.duk_example_detach_debugger(vm.context.rawValue, IntPtr.Zero); } vm.Destroy(); vm = null; }
void OnDestroy() { // DuktapeDebugger.Shutdown(); if (vm.context != null) { DuktapeDLL.duk_example_detach_debugger(vm.context.rawValue, IntPtr.Zero); } vm.Destroy(); vm = null; }