enable disable objects when objects collides with other object

how can i disable a object when the object collides with another object and changes to the object that it collided with ie. object a collides with object b and changes to object b.

I think so, you must activate the object isTrigger:

object : Transform;

function OnTriggerEnter (other : Collider) {
if(hit.object)
{
object.enabled = false;
}
}

Hope this help ;D
ask any questions