public void ShowReadyForConnection() { ShowFirstScrollView(); BeginHorCentered(); GUILayout.Label("<size=20><b>Ready for connection with " + connectedDeviceName + "</b></size>"); EndHorCentered(); BeginHorCentered(); GUILayout.Label("<size=12>When you press play, a connection with the device will be established.</size>"); EndHorCentered(); EndFirstScrollView(); BeginHorCentered(); if (GUILayout.Button("Choose other device", GUILayout.Width(150))) { ConnectionSettings.RemoteSettings(); ConnectionController.CloseConnection(); myState = MyState.refreshing; DiscoverDevices(); } EndHorCentered(); GUILayout.EndVertical(); }
public void ShowConnecting() { ShowFirstScrollView(); BeginHorCentered(); GUILayout.Label("<size=20><b>Connecting to " + connectedDeviceName + "</b></size>"); EndHorCentered(); EndFirstScrollView(); BeginHorCentered(); if (GUILayout.Button("Cancel", GUILayout.Width(70))) { ConnectionSettings.RemoteSettings(); ConnectionController.CloseConnection(); myState = MyState.refreshing; DiscoverDevices(); } EndHorCentered(); GUILayout.EndVertical(); }
void OnApplicationQuit() { ConnectionController.CloseConnection(); //ConnectionController.StopDiscovering(); }