I'm trying to access an other game objects BoxCollider but can't get it right, can someone please tell me the right way, thank you.
private var terrorist : GameObject; // Referance to the GameObject with the BoxCollider on it
private var boxCollider : BoxCollider;
terrorist = GameObject.Find("Terrorist Body"); // Find the gameObject with the BoxCollider
boxCollider = terrorist.GetComponent(BoxCollider) as BoxCollider;
Aug 05 '12 at 07:39 AM