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) {
object.enabled = false;

Hope this help ;D
ask any questions