I’m following Brackeys FPS movement (FIRST PERSON MOVEMENT in Unity - FPS Controller - YouTube) timestamp linked and I can’t seem to drag the Character to the script.
Script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MouseLook : MonoBehaviour
{
public float mouseSenstivity = 100f;
public Transform playerBody;
void Update()
{
float mouseX = Input.GetAxis("Mouse X") *mouseSenstivity * Time.deltaTime;
float mouseY = Input.GetAxis("Mouse Y") *mouseSenstivity * Time.deltaTime;
playerBody.Rotate(Vector3.up * mouseX);
}
}