Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Wrong camera movement

$
0
0
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:

Code (CSharp):
  1.  
  2. if(Input.touchCount == 1){
  3.           Touch touchCero = Input.GetTouch(0);
  4.  
  5.           if(touchCero.phase == TouchPhase.Ended && touchCero.phase != TouchPhase.Stationary){
  6.               posTouch = Input.GetTouch(0).deltaPosition;...
Wrong camera movement

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>