So I want to know when the player is moving the mouse.I followed tutorials and I dont know how to get the inputs(New Input System).In this image you see my configuration for the thing but I dont know how to acces its inputs throught a script.So how do I get the inputs?😐
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
//--Writing space--//
public class CameraRotation : MonoBehaviour
{
//--Public Variables--//
public GameObject Player;
public InputActionAsset PlayerInput;
[Space]
public float ZoomMax = 10;
//--Private Variables--//
private float ZoomMin = 0;
private void OnEnable()
{
PlayerInput.Enable();
}
private void OnDisable()
{
PlayerInput.Disable();
}
private void OnCameraMovement()
{
Debug.Log("Camera Is Moving");
}
}```