The scenario is if i am touching the object and dragging it up it should only move up and
if dragging down should also be moving down. The moving of objects is working but my problem is
sometimes even if I am moving my fingers from object to right side it goes upward. -_-"
Any help is much appreciated!
//INSIDE THE TOUCH PHASE MOVED
if(touch.position.y < lastMousePosition.y){
GameObject.Find("FlipperOne").transform.position.z -= 0.8;
}
if(touch.position.x < lastMousePosition.x){
GameObject.Find("FlipperOne").transform.position.x -= 0.8;
}
lastMousePosition = touch.position;