title: Instantiate spawn just one time
body: <p>I made a dust effect, it's working but works just once, here is my code:</p>
  
  <pre><code>if ((Input.GetKey (KeyCode.UpArrow) &amp;&amp; (grounded == false))){
              if (ativar &lt; maxAtivar){
                  Particula ();
                  Destroy (GameObject.Find ("Poeira(Clone)"), delay);
              } 
          } 
  </code></pre>
  
  <p>Particula function: </p>
  
  <pre><code>void Particula(){
      Instantiate (prefab, new Vector3 (player.transform.position.x, player.transform.position.y, 0), player.transform.rotation);
      ativar++;
  }
  </code></pre>
  
  <p>I don't know how to make this repeat, suggestions please :D</p>