I've looked around for various swiping-related answers, and could not find anything that suited me directly.
The idea is to swipe left to increment an integer variable, and left to decrement it. I have it working for buttons, and would simply like to convert it for a touch input.
The current script is as follows:
private void Buttons(){
if (GUI.Button (new Rect (1080,80, 40, 220), "Next")) {
screenNumber ++;
}
if (GUI.Button (new Rect (160,80, 40, 220), "Back")) {
screenNumber --;
}
}
*screenNumber is the name of the int variable.
I am developing for Android, if that is important for this functionality.
Thanks in advance!