private void OnTriggerEnter(Collider other) { Debug.Log("Entered: " + other); if (other.tag == "Pole") { currentPole = other.transform.root.GetChild(0).GetComponent <PoleController>(); currentPole.AddHoop(this); onPole = true; } }