How to disable box collider after clicking on a game object
Hi I am trying to do a script for disabling the box collider after clicking on to the game object however it would not work I have searched online for some sources and tried using this
public void GameObject() { GameObject.FindGameObjectWithTag("tagname").GetComponent(); }
however, it would not work thus is there any other way that can disable the box collider
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613004250im_/https://answers.unity.com/themes/thub/images/avi.jpg)