so i am starting just as a trial the roll-a-ball game but in the script for my camera i seem to have an error: Assets/Scripts/CameraController.cs(10,20): error CS1519: Unexpected symbol `void’ in class, struct, or interface member declaration
my script looks like this:
using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour
{
public GameObject player;
private Vector3 offset
// Use this for initialization void Start ()
void Start ()
{
offset = transform.position;
}
// Update is called once per frame
void LateUpdate ()
{
transform.position = player.transform.position + offset;
}
}
they sey that the problem is at void Start ()
can someone help me we this?