I am trying to create first person camera. Here is my scene:
and my action map:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class camera : MonoBehaviour
{
public Transform playerPos;
Camera cam;
private Player playerInput;
void Awake()
{
cam = GetComponent<Camera>();
playerInput = new Player();
}
void Update()
{
transform.position = playerPos.transform.position;
}
private void OnEnable()
{
playerInput.Enable();
}
private void OnDisable()
{
playerInput.Disable();
}
}
can someone know create create first person camera rotate on touch android device
i seen this video but i dont want to use cinemachine and camera should be first person
video link - Mobile Joystick with NEW Input System and Cinemachine - Unity Tutorial - YouTube
can anybody help me pls
thank you !

