Example #1
0
    void Update()
    {
#if UNITY_EDITOR
        if (detectUnityRemote && Input.touchCount > 0 && inputProvider.GetType() != touchInputProviderPrefab.GetType())
        {
            InstallInputProvider(touchInputProviderPrefab);
            detectUnityRemote = false;
            return; // skip a frame
        }
#endif
        if (inputProvider)
        {
            UpdateFingers();
        }
    }
Example #2
0
    void Update()
    {
#if UNITY_EDITOR
        if (detectUnityRemote && Input.touchCount > 0 && inputProvider.GetType() != touchInputProviderPrefab.GetType())
        {
            Debug.Log("UnityRemote presence detected. Switching to touch input.");
            InstallInputProvider(touchInputProviderPrefab);
            detectUnityRemote = false;
            return; // skip a frame
        }
#endif
        if (inputProvider)
        {
            UpdateFingers();
        }
    }