- Home /
 
               Question by 
               malekbakeer · Jun 20, 2013 at 04:32 PM · 
                colliderfunctiononmousedownenabledtrue  
              
 
              onMouseDown call function from other script
onMouseDown call this function from other script
 collider.enabled = true
               Comment
              
 
               
              There is not enough information here for an answer. Post your scripts.
Answer by oliver-jones · Jun 20, 2013 at 04:35 PM
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
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                