Example #1
0
        private static List <WrappedTouch> GetTouchesFromInputTouches()
        {
            List <WrappedTouch> touches = new List <WrappedTouch>();

            foreach (var touch in Input.touches)
            {
                touches.Add(WrappedTouch.FromTouch(touch));
            }
            return(touches);
        }
Example #2
0
        private static List <WrappedTouch> GetTouchesFromInputTouches()
        {
            List <WrappedTouch> touches = new List <WrappedTouch>();

#if USE_TOUCHSCRIPT
            foreach (var touch in TouchManager.ActiveTouches)
            {
                touches.Add(WrappedTouchFrom(touch));
            }
#else
            foreach (var touch in Input.touches)
            {
                touches.Add(WrappedTouch.FromTouch(touch));
            }
#endif
            return(touches);
        }