function OnTriggerEnter (myTrigger : Collider) { if(myTrigger.gameObject.name == "box"){ Debug.Log("Box went through!"); } }