Hi, I’m working on making a multi touch screen game (basically simultaneously moving multiple cubes around the screen with multiple fingers). I have it working, and I am able to move multiple objects - however when I’m moving more than one cube (say two cubes with two fingers) I get this error:
is out of range. Parameter name: index
(Int32 index) (at
buttonTouch.OnTouchMove () (at
And yet it still functions and works?! The same error happens if I move three cubes or four cubes, but it doesn’t occur when I am moving just one cube.
I’m pretty sure that the bug exists here within the FOR loop or the fingerPosition variable - but I’m not sure and I’ve tried everything. Please help! This is really bugging me.