i am trying to do a tutorial off of youtube and i am writing the code but i always get error CS1519 unexpected symbol void’ in class struct or interface member declaration. I tried everything. Searching the web, looking at the video code, searching it on youtube but nothing helps. here is my code.
using UnityEngine;
using System.Collections;
public class Enemy : MonoBehaviour {
public Transform[] enemyPoints;
public float moveSpeed;
private int currentPoint
// Use this for initialization
void Start () {
transform.position = enemyPoints[0].position;
currentPoint = 0;
}
// Update is called once per frame
void Update () {
if (transform.position == enemyPoints[currentPoint].position)
{
currentPoint ++;
}
transform.position = Vector3.MoveTowards(transform.position, enemyPoints [currentPoint].position.moveSpeed * Time.deltaTime);
}
}
Please help soon.