title: Unity How to check if Object does not exist
body: <p>Ok,I have 2 coins in my scene both of them called "Coin" if the ship Triggered the coin the coin Destroy by calling</p>
  
  <pre><code>Destroy(this.gameObject);
  </code></pre>
  
  <p>I also have a lander which is NOT activated (by unchecking the check mark next to the object name in inspector)</p>
  
  <p>So I have to coins when both coins are destroyed I want the lander to be active. I've done that and working by this code in the coin script :</p>
  
  <pre><code>var landing : GameObject;
  
  function OnTriggerEnter2D (other : Collider2D) {
  
      Destroy(this.gameObject);
      if(Coin){
  
          Debug.Log("Object exist");
  
      }else{
  
          landing.SetActive(true);
  
      }
  
  }
  </code></pre>
  
  <p>the result am having is the coin destroys when I hit the first coin (That what should happen) but when I hit the next coin it destroys but without making the lander active so how can I make the lander active only if no coin exist on the scene</p>