Two finger swipe for panning camera

I got a script which enable me to zoom and orbit camera.the link to the script: https://community.unity.com/t5/Scripting/Two-fingers-orbit-camera/m-p/1863335#M324801

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

i need to have the two finger pan and pinch zoom at the same time.

and it does not have pan( only camera orbit and pinch zoom).

i need to have the two finger pan and pinch zoom at the same time.and it does not have pan( only camera orbit and pinch zoom).