I am new for ios development so i actually try to do moving the object from right left side. My object should move right side when i touch the right side of the screen and move left side when i touch the left side of the screen. But i did not get the output for this till now,
First of all, you could probably just check for Input.GetMouseButtonDown(0). It works with mouse and also responses to single touch. Second of all, I didn’t quite figure out your logic about the position checking. Perhaps some kind of misunderstanding? You’re literally checking wether the screen width divided by 3 is lesser or greater than zero. That is going to be greater than zero all the time. So you probably need to use the mouse position (Input.mousePosition) and check where it is. Something like this: