Hi All,
Firstly thank you for taking the time to look at my question.
I’m new to making games and Unity and I’m currently working my way through a 2D platformer tutorial and I’ve hit a snag I can’t solve.
When I try to create a new Seeker object from the Astrostar I’m getting the following error:
Here is my code:
using UnityEngine;
using Pathfinding;
[RequireComponent (typeof(Rigidbody2D))]
[RequireComponent (typeof (Seeker))]
public class EnemyAI : MonoBehaviour {
public Transform target;
public float updateRate = 2; //times per second
private Seeker seeker;
private Rigidbody2D rb;
//The calculated path
public Path path;
//The AI's speed per second
public float speed = 300f;
}
I’m not sure whether it’s related but I have another few error messages that have popped up today that weren’t there when I was working yesterday. I cannot work out for the life of me what I did to incur these. Despite these messages the game still works as it did yesterday.
Thanks in advance for any advice you can offer!