Doesn't work

changing GameObject for Tower didn’t work,it made an error saying object reference not set to a instance of an object,despite the fact of having the tower script in the tower prefab and the tower prefab set in the waypoint script,it’s been 2 days trying things and nothing,the way you do it doesn’t work,at least for me,even copied the scripts from the resources and nothing

Can you show us anything? It makes it easier to help. Perhaps show the inspector where you assigned the Tower after you changed it to Tower. Also show the code where you changed it from GameObject to Tower


I can’t see anything wrong here. Check the tiles and make sure that Tower Prefab is assigned.