void Awake() { _rt = ScriptEngine.CreateRuntime(); var fileSystem = new DefaultFileSystem(); _rt.AddSearchPath("Assets"); _rt.AddSearchPath("node_modules"); _rt.EnableStacktrace(); if (sourceMap) { _rt.EnableSourceMap(); } _rt.Initialize(fileSystem, this, new UnityLogger(), new ByteBufferPooledAllocator()); }