using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Mouse_Look : MonoBehaviour
{
public float mouseSensitivity = 100f;
public Transform playerBody;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
float mouseX = Input.GetAxis(“Mouse X”) * mouseSensitivity * Time.deltaTime;
float mosueY = Input.GetAxis(“Mouse Y”) * mouseSensitivity * Time.deltaTime;
playerBody.Rotate(Vector3.up * mouseX);
}
}
Please use Code Tags
Please copy the entire error message from the compiler including where (line number) it occurs
Asset\MouseLook.cs(12,6): error CS1513: } expected
The code you shared doesn’t match the error message you shared. The only thing I can say with the information you’ve given is that your class name and filename need to match, and right now they don’t. Your file is called “MouseLook.cs” and your class is called “Mouse_Look”. Unity will choke with that setup.
Also is this script really inside “Asset” and not “Assets”?