title: How to use the multiple collider in cube object?
body: <p>How can I use the multiple collider in cube object?</p>
  
  <p>I have one cube object. If you touch the right side Action A happens; if you touch the left side Action B happens.</p>
  
  <p>I attached two box colliders on the cube object.</p>
  
  <p>My source code is:</p>
  
  <pre><code>void Update () {
      if (Input.GetMouseButtonDown(0)){
          Ray ray = camera.ScreenPointToRay(Input.mousePosition);
          RaycastHit hit;
          if (Physics.Raycast(ray, out hit)){
              // I catch the event that any collider is clicked;
              actionA(hit.transform.gameObject);
              // or
              actionB((hit.transform.gameObject);// How can I tell which collider is clicked????
          }
  
      }
  }
  </code></pre>