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
        }
예제 #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
 }
예제 #3
0
 public CircleGesture(ITouchProvider touchProvider, float leastLength)
 {
     _touchProvider = touchProvider;
     _leastLength   = leastLength;
 }