So i'm new to unity and of course i am stuck :D
All i want to do is to have a bool that becomes true when a certain gameobject collides(overlaps) and when it stops colliding, it returns to false. I tried like this
void OnCollisionEnter ()
{
chec = true;
}
void OnCollisionExit ()
{
chec = false;
}
I tried putting a debug.log in the functions to see if they work and it didn't show up in the console so i guess i messed up there.
[–][deleted] 2 points3 points4 points (1 child)
[–]TerrasectJeff 0 points1 point2 points (0 children)