I made a script for an enemy AI, I don't know if I did any of this right really. I keep getting the error: Assets/EnemyAI.cs(11,13): error CS1519: Unexpected symbol `Awake' in class, struct, or interface member declaration
My script:
using UnityEngine;
using System.Collections;
public class EnemyAI : MonoBehaviour {
public Transform target;
public int moveSpeed;
public int rotationSpeed;
private Transform myTransform
void Awake() {
myTransform = transform;
}
// Use this for initialization
void Start () {
GameObject go = GameObject.FindGameObjectWithTag("Player");
target = go.transform;
}
// Update is called once per frame
void Update () {
}
}
Can someone please tell me what I have wrong? Thanks!