using UnityEngine;
using System.Collections;
public class Ai1 : MonoBehaviour {
private Vector3 Player;
private Vector2 PlayerDirection;
private float Xdif;
private float Ydif;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
Player = GameObject.Find("Player").transform;
}
the error appears in the line of code that says:
Player = GameObject.Find("Player").transform;
↧