private void OnBluetoothDisconnectedFromServer(BluetoothDevice device) { Debug.Log("Event - DisconnectedFromServer: " + BluetoothExamplesTools.FormatDevice(device)); // Stopping Unity networking on Bluetooth failure Network.Disconnect(); }
private void OnBluetoothDevicePicked(BluetoothDevice device) { Debug.Log("Event - DevicePicked: " + BluetoothExamplesTools.FormatDevice(device)); // Trying to connect to a device user had picked AndroidBluetoothMultiplayer.Connect(device.Address, kPort); }
private void OnBluetoothConnectedToServer(BluetoothDevice device) { Debug.Log("Event - ConnectedToServer: " + BluetoothExamplesTools.FormatDevice(device)); // Trying to negotiate a Unity networking connection, // when Bluetooth client connected successfully Network.Connect(kLocalIp, kPort); }
private void OnBluetoothDisconnectedFromServer(BluetoothDevice device) { Debug.Log("Event - DisconnectedFromServer: " + BluetoothExamplesTools.FormatDevice(device)); ServerClinetInfo.text = "Server disconnected\n go to menu!"; ServerClientMultiplayerWindow.SetActive(true); // Stopping Unity networking on Bluetooth failure Network.Disconnect(); }
private void OnBluetoothConnectionToServerFailed(BluetoothDevice device) { Debug.Log("Event - ConnectionToServerFailed: " + BluetoothExamplesTools.FormatDevice(device)); }
private void OnBluetoothClientConnected(BluetoothDevice device) { Debug.Log("Event - ClientConnected: " + BluetoothExamplesTools.FormatDevice(device)); }