How to move 2 objects with 2 touches

Hi, I’m new to coding and was wondering on how to move 2 sprites with 2 finger touch controls? Like in the example picture, I want to be able to move player 1’s blue box with player 1’s finger touch and also the same for player 2’s finger touch and box. Any help would be much appreciated.

Thanx.

use Input.touches to get array of all active touches at the moment, save fingerId of every Touch and use touchPhase of every touch to determine touch’s begin, movement and end.

use Camera.ScreenPointToRay and Physics.Raycast to determine what object in 3d-space are being clicked.