Whenever I try this bit of code (it is designed to only detect input on the left side of the screen), I get the following error…why? It doesn’t break the game and the works correctly, so what is wrong? Thanks
function Testing(){
if(Input.touches[0].position.x < Screen.width/2)
Foo;
}
IndexOutOfRangeException: Array index
is out of range.