title: Unity GameObject not found
body: <p>Hey guys this is my first time try to make simple game in Unity but i got stuck in movement script,</p>
  <p>I already have script for my player called &quot;player&quot; script, so now i'm trying to make a script for my controller which is a touchscreen pad, like moving left, right and jump, i'm following youtube tutorial,</p>
  <p>Even my script and the tutorial script are same, but mine is got error, it said my GameObject is not found or missing... Here's my pad script</p>
  <pre><code>    public class TouchPad : 
      MonoBehaviour {
  
      public GameObject player;
  
      public void OnMouseDown()
      {
       if (gameObject.name == 
      &quot;Left&quot;)
       {
       }
       else if (gameObject.name == 
      &quot;Right&quot;)
       {
       }
       else if (gameObject.name == 
      &quot;Jump&quot;)
       {
       }
       }
       public void OnMouseUp()
       {
       if (gameObject.name == &quot;Left&quot;)
       {
       }
       else if (gameObject.name == 
      &quot;Right&quot;)
       {
       }
       else if (gameObject.name == 
      &quot;Jump&quot;)
       {
       }
       }
       public void OnMouseDrag()
       {
       if (gameObject.name == 
      &quot;Left&quot;)
       {
           
      player.GetComponent&lt;player&gt;. 
      ().Left(); &lt;&lt;&lt;&lt;&lt;&lt;&lt; The 
      &lt;player&gt; got &quot;Could not be 
      Found&quot;
       }
       else if (gameObject.name == 
      &quot;Right&quot;)
       {
       }
       else if (gameObject.name == 
     &quot;Jump&quot;)
       {
       }
      }
      }
  </code></pre>