public void initScene() { Write("initializing scene..."); mainCommand = new Command(tunnelId); // reset the scene WriteTextMessage(mainCommand.ResetScene()); //Get sceneinfo and set the id's SendMessageAndOnResponse(mainCommand.GetSceneInfoCommand("sceneinfo"), "sceneinfo", (message) => { //Console.WriteLine("\r\n\r\n\r\nscene info" + message); cameraId = JSONParser.GetIdSceneInfoChild(message, "Camera"); string headId = JSONParser.GetIdSceneInfoChild(message, "Head"); string handLeftId = JSONParser.GetIdSceneInfoChild(message, "LeftHand"); string handRightId = JSONParser.GetIdSceneInfoChild(message, "RightHand"); }); // add the route and set the route id SendMessageAndOnResponse(mainCommand.RouteCommand("routeID"), "routeID", (message) => routeId = JSONParser.GetResponseUuid(message)); }