public InputController()
        {
#if  (UNITY_IPHONE || UNITY_ANDROID) && !UNITY_EDITOR
            Debug.Log("Using native touches");
            _provider = new UnityTouchProvider();
#else
            Debug.Log("Emulating touches from mouse");
            _provider = new MouseTouchProvider();
#endif
        }
Exemple #2
0
 public InputController()
 {
     #if  (UNITY_IPHONE || UNITY_ANDROID) && !UNITY_EDITOR
     Debug.Log("Using native touches");
     _provider = new UnityTouchProvider();
     #else
     Debug.Log("Emulating touches from mouse");
     _provider = new MouseTouchProvider();
     #endif
 }
 public CircleGesture(ITouchProvider touchProvider, float leastLength)
 {
     _touchProvider = touchProvider;
     _leastLength   = leastLength;
 }