public void Update(List <TouchData> touchDataList) { foreach (var touchData in touchDataList) { if (TouchMove(touchData)) { Update(SampleDraw.TouchPixelX(touchData)); } } }
/// Rectangle touch test public bool TouchMove(TouchData touchData) { if (touchData.Status == TouchStatus.Move) { return(InsideRect(SampleDraw.TouchPixelX(touchData), SampleDraw.TouchPixelY(touchData))); } return(false); }