title: Unity - How to detect collision on a child object from the parent GameObject?
body: <p>I am making a 2D Game with Unity 5 and I have a problem with child GameObject collider. I want to detect a collision between a Child GameObject with another object, doing this from the parent script and using tags.</p>
  
  <p>Follow my parent script below:</p>
  
  <pre><code> void OnCollisionEnter2D(Collision2D hit) {
  
      if(hit.transform.tag == "Enemy"){
  
          this.playerRigidbody.AddForce(new Vector2(0, this.forceJump));
  
      }
  
   }
  </code></pre>
  
  <p>The "Enemy" tag is another object that is colliding with the collider of my player child. I want to detect the collision between the child object and that another object, I searched in many similar forums about Unity but I couldn't solve my problem. Someone can help me with this problem?</p>