public void TryConnectUSBa() { #if PLATFORM_ANDROID if (!usbaBot.Connect()) { ConnectedText.text = "USB connection failed: Check popup"; return; } RootNotConnectedAndroid.SetActive(false); ConnectedText.text = "USB connected"; #endif }
public void TryConnectUSBa() { #if PLATFORM_ANDROID || UNITY_STANDALONE || UNITY_EDITOR #if UNITY_STANDALONE || UNITY_EDITOR if (!usbBot.Connect()) #else if (!usbaBot.Connect()) #endif { ConnectedText.text = "USB connection failed: Check popup"; return; } RootNotConnectedAndroid.SetActive(false); ConnectedText.text = "USB connected"; #endif }