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


Captura2

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

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms