so im currently trying to recreate a game that i made in blender in unity and i have run into a bit of a roadblock. The script that i am using has an error that seems to be non-existant to the people that originally made the script. i will post the script that i am using but the error that i am getting is “A name space cannot directly contain members such as fields or methods”
Script
// Move Camera Script
var horizontalspeed : float = 2000.0;
var verticalspeed : float = 2000.0;
function Update () (
var h : float = horizontalspeed * Input.GetAxis ("Mouse X");
var v : float = verticalspeed * Input.GetAxis ("Mouse Y");
transform.Translate (v,h,0);
)