title: Unity Check if object is clicked
body: <p>Please keep in mind that I'm new to unity. I created an 2D android game app. </p>
  
  <p>I created a start button( from an image) and attacted a Box colider, and a C# script to it.</p>
  
  <p>When I click the "button" I want the program to move to the next "Level", that Works except that I want it to only Work if i click the object and not everywhere on the game.</p>
  
  <p>This is the C#:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class StartGame : MonoBehaviour {
  
  
  // Use this for initialization
  void Start () {
  
  }
  
  // Update is called once per frame
  void Update () {
      if (Input.GetMouseButtonDown(0)) {
          Application.LoadLevel("Game");
      }
  
  }
  
  }
  </code></pre>
  
  <p>I searched alot about this and maybe people say that to solve this you have to use, <code>Ray</code> and <code>RaycastHit</code> But I cant get that to Work either.</p>
  
  <p>Here is what I tried to with <code>Ray</code> &amp; <code>RaycastHit</code></p>
  
  <pre><code>// Update is called once per frame
  void Update () {
      if ((Input.touchCount &gt; 0 &amp;&amp; Input.GetTouch(0).phase == TouchPhase.Began) || (Input.GetMouseButtonDown(0))) 
      {
          RaycastHit hit;
  
          Ray ray;
  
          #if UNITY_EDITOR
          ray = Camera.main.ScreenPointToRay(Input.mousePosition);
          #elif (UNITY_ANDROID || UNITY_IPHONE || UNITY_WP8)
          ray = Camera.main.ScreenPointToRay(Input.GetTouch(0).position);
          #endif
  
          if(Physics.Raycast(ray, out hit))
          {
              Application.LoadLevel("Game");
          }
      }
  }
  </code></pre>
  
  <p>Any help would be so appriciated.</p>