using UnityEngine;
using System.Collections;
public class MouseTurningScript : MonoBehaviour
{
public float sideTurn = Input.GetAxis(“Mouse X”);
public float turnSpeed = 5.0f;
void Update ()
{
if (Input.GetMouseButtonDown(1));
{
transform.Rotate(0, sideTurn, 0 * turnSpeed * Time.deltaTime);
}
}
}
/*
this dosent show and error, it shows a warning I dont quite understand, somthing about missing argument, but no errors,
however when I start the game, it just freezes, than i just unclick the play button and its back to normal.
Im very, new to C#, and unity, usualy i stick to gml (game maker)
Please help, thanks ![]()
*/