title: activeSelf return true and gameobject is false
body: <p>So i have gameobject called <code>menuView</code>. I created script that <code>toogleGameobject</code> and it is simple - check if it is <code>selfActive</code>, if it is then set to false and if it false then set it to true. Problem is that for some reason it was not working. Then inside that function i set <code>Debug.Log(selfActive)</code> and in my console it returns that it is true but my gameobject is false.</p>
  
  <p>Here is image:
  <a href="https://i.stack.imgur.com/weASL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/weASL.png" alt="image"></a></p>
  
  <p>I am calling script by button and script need parameter <code>gameObject</code> so I assign it through inspector.</p>
  
  <pre><code>public void toogleGameObject(GameObject gameobject)
  {
      Debug.Log(gameobject + " " + gameObject.activeSelf);
  
      //In image above this down was under comment, so only Debug.Log was caled with function
      if(gameObject.activeSelf == true)
      {
          gameObject.SetActive(false);
      }
      else
      {
          gameObject.SetActive(true);
      }
  }
  </code></pre>
  
  <p>Here i assign and call gameobject:<a href="https://i.stack.imgur.com/aMf0R.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aMf0R.jpg" alt="Image"></a></p>