I need help with this parsing error (where is it?)

My script in C# in Unity Engine

public class LookAtPlayer : MonoBehavior {

var target = Transform; //enemy target

var moveSpeed = 1; //move speed

ver rotationSpeed = 3; //speed of turning

var myTransform = Transform //current transform data of this enemy }

function Update
  //rotate to look at the player
  myTransform.rotation = Quaternion.Slerp (myTransform.rotation;
  Quaternion.LookRotation(target.position - myTransform.position), rotationSpeed*Time.deltaTime);

  //move towards the player
  myTransform.position += myTransform.forward * moveSpeed * Time.deltaTime;

}

myTransform.rotation = Quaternion.Slerp (myTransform.rotation;

You’ve got a semi-colon there, likely you just want a comma.

Also, you probably want to encase the actual Update code in another set of curly braces. {}

There are a number of problems that I can see:

var myTransform = Transform //current transform data of this enemy }

I don’t think you can say that a variable is assigned a class. Did you mean to have a colon where the equals sign is? Also, you’ll need a semi-colon before the comment.

function Update

You should have open and close brackets and an opening brace.

And, what ChaoticBoredom said.