The script is great.But i need to add camera pan to the script which will enable me to move the camera in x-z plane.This is for a scene in android 3d project.I am beginner in unity programming.please help me
well that script appears to already have pan, just for a single touch… if you want it to only pan for a double touch the second if statement needs to have
if (Input.touchCount == 1 //...
changed to
if (Input.touchCount == 2 //... or >1 or whatever you need