Hello, I am having Issue on Making my Game for Mobile. When I pressed my screen With two fingers, it's changes the Camera's Rotation

video footage link ;- Reddit - Dive into anything

And I used this joystick pack for my game:- Joystick Pack | Input Management | Unity Asset Store
script used for my player movement :-`using UnityEngine;
using System.Collections;

public class PlayerMovement : MonoBehaviour
{
public float moveSpeed = 15f;
public Joystick joystick;
// Use this for initialization

// Update is called once per frame
void Update()
{
    var input = new Vector3(joystick.Horizontal, 0, joystick.Vertical);
    if (input != Vector3.zero)
    {
        transform.forward = input;
    }
    var direction = new Vector3(joystick.Horizontal, 0f, joystick.Vertical);
    transform.Translate(direction * moveSpeed * Time.deltaTime, Space.World);
}

}

script used for camera follow player :-

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraFollow1 : MonoBehaviour
{
    public Transform player;

    private Vector3 offset = new Vector3(0f,25f,0f);

    void LateUpdate()
    {
        transform.position = player.position + offset;
    }
}

Based on your code, I see that you don’t handle each input and usually when you are pressing with 2 fingers at the same time they should be “seen” as one single input on the middle point from the inputs (didn’t try on all phones but on mines this is the behavior, I may be wrong).

Can you reproduce the bug using two taps in one of the corners? I think the actual bug is happening when you press near the center point of your phone and something in your code rotation makes this behavior.

Based on the name of the CameraFollow1 means you have other CameraFollow scripts, check again if
the correct script is attached to the camera object.

Can you reproduce this bug by pressing anywhere else on the screen (without two taps) ?
Do you have any other scripts using Input from mouse or touch? I think this can also be a cause