Hello.
The idea is that through the cell phone touch, you can move the camera in 2 directions to see a map. But, what happens is that giving a touch abruptly moves the camera, and if I'm not wrong my script shouldn't let it happen.
My script:
Wrong camera movement
The idea is that through the cell phone touch, you can move the camera in 2 directions to see a map. But, what happens is that giving a touch abruptly moves the camera, and if I'm not wrong my script shouldn't let it happen.
My script:
Code (CSharp):
- if(Input.touchCount == 1){
- Touch touchCero = Input.GetTouch(0);
- if(touchCero.phase == TouchPhase.Ended && touchCero.phase != TouchPhase.Stationary){
- posTouch = Input.GetTouch(0).deltaPosition;...