예제 #1
0
    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
    }
예제 #2
0
    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
    }