Please explain this very slowly since I am very new to unity.
This is in a 2D game. I have the pathfinding script on an empty gameobject and the graph setup. Everything there is perfect. I have the Seeker, AIPath, and Funnel script on my player.
Now I can move if my target is a transform, but not if it is a position (Vector3) mostly because every time I try to setup an update function in the AIPath script, the player stops moving for some reason.
My basic function was this (I had this in the AIPath script):
void Update{
if(Input.GetMouseButtonDown(0)){
target = Camera.main.ScreenToWorldPoint(Input.mouseposition);
}
}
I don’t know exactly how pathfinding works so please explain slowly.
Thank you for any help.