public static void VRPNM(int a) { GUIMoleculeController.showVRPNMenu = LoadTypeGUI.SetTitleExit("VRPN Client"); /* * Device configuration section */ if (vrpnManagerScript && vrpnManagerScript.isInitialized()) { vrpnManagerScript.renderDevicesGUI(); } GUILayout.Space(20); /* * Server connection section */ if (!omniConnected && GUILayout.Button("Omni@localhost:3884")) { Debug.Log("Adding device"); omniConnected = true; vrpnManagerScript.addDevice("Omni@localhost:3884", VRPNDeviceType.Phantom); Debug.Log("Omni@localhost added"); } if (!mouseConnected && GUILayout.Button("device0@localhost")) { Debug.Log("Adding device"); mouseConnected = true; vrpnManagerScript.addDevice("device0@localhost", VRPNDeviceType.Mouse3DConnexion); Debug.Log("device0@localhost added"); } GUI.enabled = true; GUI.DragWindow(); }