How can I state in a script that “As long as the collider of a certain gameobject collides with the collider of this object that has a script, set boolean variable to true else if it is not anymore inside the collider, set boolean variable to false”?
Theres 2 functions for these events
Just set true on the first, and false in the second
1 Like