Czesc
jestem absolutnie poczatkujacy w programowaniu ale wiem ze ktos z was na pewno wie jak to naprawic bo w unity wyswietla sie bardzo duzo errorow, w komentarzu dodatkowo zdjecie
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MouseLook : 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 mouseY = Input.GetAxis(''Mouse Y''); *mouseSensitivity * Time.deltaTime;
playerBody.Rotate(Vector3.up * MouseX);
}
ps. Czy ktos moze polecic jakies dobre w miare krotkie filmiki jak programowac w unity
Zdjęcie: https://ibb.co/jDQbj4q