Hey guys, I'm teaching kids how to code in Unity, but my script has an error, can you check it out?

No.497408 ViewReplyOriginalReport
using UnityEngine;
using System.Collections;

// This script is designed to have the cube use a NavigationMesh search and locate the target, which is, in this case, the camera.

// A navigation mesh is generated by the engine and tells the bot what it can walk on.

public class AIscriptv2 : MonoBehaviour {

Transform tr_Player;
float f_RotSpeed=3.0f,f_MoveSpeed = 3.0f;

// Use this for initialization
void Start () {

tr_Player = GambeObject.FindGameObjectWithTag ("Player").transform


// Update is called once per frame
void Update () {

// Look at target destination

transform.rotation = Quaternion.Slerp (transform.rotation, Quaternion.LookRotation (tr_Player.position - Transform.position), f_RotSpeed * Time.deltaTime);

// This line of code tells the bot to move towards the target.

transform.position += transform.forward * f_MoveSpeed * Time.deltaTime;


>Assets/Standard Assets/AIscriptv2.cs(19,9): error CS1525: Unexpected symbol `}', expecting `;'


>please help

>pic unrelated, have a planet texture for your troubles