I have a prefab of enemies you have to find the target player. How can I make searching GetComponent (); instead of using tags?
private Transform target;
target = GetComponent<Player>();
I have a prefab of enemies you have to find the target player. How can I make searching GetComponent (); instead of using tags?
private Transform target;
target = GetComponent<Player>();
Thank you very much @LeftyRighty