Hi! I created a code block that if you hit the colliders, they will be colored red. Now, how can I make that if a collider is hit, the other triggers will not happen anymore? Here are my codes.
function OnControllerColliderHit(hit : ControllerColliderHit) {
if(hit.collider.gameObject.name=="ID331"){
hit.collider.renderer.material.color = Color.red;
}
else if (hit.collider.gameObject.name=="Collider1"){
hit.collider.renderer.material.color = Color.red;
}
}
Thanks!