Get collider and list it,Get Collider and List it

Hello everyone. What I want to do is; Putting 4 tire colliders in one area but counting down the tires and glowing green when you put the last tire in. I can turn the field green, but the colliders turn green as soon as they touch each other. I want the tires to glow green when they’re all in. I would be very happy if anyone can help.

 private Color m_oldColor = Color.white;

 private void OnTriggerEnter(Collider other)
 {    
     Renderer renderer = GetComponent<Renderer>();

     m_oldColor = renderer.material.color;
     renderer.material.color = Color.green;
 }

 private void OnTriggerExit(Collider other)
 {
     Renderer renderer = GetComponent<Renderer>();
     renderer.material.color = m_oldColor;
 }

the code i made to turn it green

but i cant get the colliders from the car controller script.

Hello have you considered adding tag to your tires or vehicle or adding tires on layer which do not collide with itself?
There is this setting in project setting

You can create and set layer here

It is edit/project settings/physics 2d and Layer collision matrix you can set there what should collide and what not

I’m sorry for asking stupid questions because I’m just getting started. . What I want to do is; All 4 tires glow green when they enter an area. I tried layers but no result. my tires have colliders and transforms. I need to use the count variable so that 4 tires enter the region I have determined. I don’t know how to do this

For those who are interested, the link of the package file