title: destroy a specific gameobject after an amount of time in unity
body: <p>I kinda stuck with my script right now. When a gameObject, with my script attached to it, has a trigger event with a specific gameObject, I want to destroy the specific gameObject after an amount of time.</p>
  
  <p>So i came to this:</p>
  
  <pre class="lang-c# prettyprint-override"><code>void OnTriggerEnter ( Collider other) {
  
  if (other.gameObject.tag == "leaf1"){
      StartCoroutine (LeafDestruction ());
      }
  }
  
  IEnumerator LeafDestruction(){
  
  yield return new WaitForSeconds (5);
  Destroy (gameObject);
  
  }
  </code></pre>
  
  <p>I know it's a noob mistake but i think i miss something, because when i run this script, it destroys the gameObject with the script attached to it, and not the specific gameObject(with tags).</p>
  
  <p>How can i fix that?</p>