public void Awake() { SceneDumpService = new SceneDumpService(new RuntimeObjectWrapperService()); Processor = new JsonRpcProcessor(); QueryService = new SceneQueryService(); LuaRuntime = new DefaultUnitiniumLuaRuntime(QueryService); Processor.SetMethod("dump", SceneDumpService.DumpScenes); Processor.SetMethod("execute", (string script) => LuaRuntime.Execute(script)); Processor.SetMethod("co_execute", (string script) => LuaRuntime.Execute(script, true)); Processor.SetMethod("get_execution", (long id) => LuaRuntime.GetExecution((int)id)); Processor.SetMethod("query", (string query) => QueryService.Execute(query)); server = new JsonRpcServer(); requests = server.Start("http://localhost:" + ListenPort + "/"); }