public override void TouchMoved(Touch touch)
 {
     if (currentTouch == touch)
     {
         thisPosition = TouchManager.ScreenToViewPoint(touch.position * 100f);
     }
 }
 public override void TouchBegan(Touch touch)
 {
     if (currentTouch == null)
     {
         beganPosition = TouchManager.ScreenToWorldPoint(touch.position);
         if (worldActiveArea.Contains(beganPosition))
         {
             thisPosition = TouchManager.ScreenToViewPoint(touch.position * 100f);
             lastPosition = thisPosition;
             currentTouch = touch;
             beganTime    = Time.realtimeSinceStartup;
         }
     }
 }
Exemple #3
0
        public override void TouchBegan(Touch touch)
        {
            if (currentTouch != null)
            {
                return;
            }

            var beganPosition = TouchManager.ScreenToWorldPoint(touch.position);

            if (worldActiveArea.Contains(beganPosition))
            {
                thisPosition = TouchManager.ScreenToViewPoint(touch.position * 100.0f);
                lastPosition = thisPosition;
                currentTouch = touch;
            }
        }