I used to code GameObject.FindWithTag(“Stickman”).SetActive(false);
to set the Stickman object with the tag to false but it doesn’t work. This is inside a function which activates when a button is clicked and it doesn’t work. The error message says that Object reference not set to an instance of a object.
I tried a lot of things but nothing worked.
New contributor
iwan music is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.