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.

