void OnDestroy() { if (this == JSEngine.inst) { JSMgr.ShutdownJSEngine(); JSEngine.inst = null; JSEngine.initState = 0; Debug.Log("JS: JSEngine Destroy"); } }
void OnDestroy() { if (this == JSEngine.inst) { if (mDebug && initSuccess) { JSApi.cleanupDebugger(); } JSMgr.ShutdownJSEngine(); JSEngine.inst = null; JSEngine.initState = 0; Debug.Log("JS: JSEngine Destroy"); } }