DEV Community

Discussion on: Simple unity 2d platformer AI

Collapse
 
ltoofy19 profile image
Ltoofy

Please help I did everything and then it tells me "Player" could not be found even though my controllable character is called "Player".

Collapse
 
kuhnkee profile image
kuhnkee

Do your player character have a script called player? My line goes playerTransform = FindObjectOfType().transform; Since the script on my player is called PlayerController.

Collapse
 
blazingfire profile image
Wyn Doe

That worked for me thank you.