onMouseDown call this function from other script
collider.enabled = true
onMouseDown call this function from other script
collider.enabled = true
Ummm …
I’m guessing you want to turn off the collider on a gameObject from an external script?
Try this:
var target : gameObject;
function OnMouseDown(){
target.gameObject.collider.enabled = true;
}
Next time, do try and be a little more specific. Peace