title: assertion failed on expression go isactive () && go gettag () != 0 unity
body: <p>This error is harmless to my game development but it hurts my eye by seeing it from time to time . How can i get rid of this error on unity . </p>
  
  <blockquote>
    <p>Assertion failed: Assertion failed on expression: 'go.IsActive() &amp;&amp; go.GetTag() != 0'UnityEngine.Camera:get_main()</p>
  </blockquote>
  
  <p>It came out when i find an object using tag</p>
  
  <pre><code>public GameObject shadowUnderWater;
  
  void OnEnable(){
    //uSkyManager Instantiates
      if(shadowUnderWater == null){
          shadowUnderWater = GameObject.FindGameObjectWithTag("SkyManager");
      }
  }
  </code></pre>
  
  <p>What i did so far is this : </p>
  
  <pre><code>void Awake(){
    Camera.main.GetComponent&lt;Camera&gt; ();
  }
  </code></pre>
  
  <p>I set the camera on the <code>Awake</code> function because i saw in some forum the you just need to instantiate the camera.</p>