title: Unity ParticleSystem Play and Stop
body: <p>My <code>particlesystem.Play()</code> does not work. I have spent few hours on this issue and still could not figure out. </p>
  
  <p>Whenever my character hits an object, it will call the function <code>particleAuraPlay()</code>, and the log message "HIT" is showing which means the function is being called properly. </p>
  
  <p>When the <code>playAura</code> is set to true, the particle should play, and again the log message "Running" is showing up, too. Since the message is showing I assume my logic is correct but the particle just won't start playing. Can anyone please solve my problem?</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class ParticleController : MonoBehaviour {
  
      private bool playAura = false;
      private ParticleSystem particleObject;
  
      void Start () {
          particleObject = GetComponent&lt;ParticleSystem&gt;();
          particleObject.Stop();
      }
  
  
      void Update () {
          if (playAura)
          {
              Debug.Log("Running");
              particleObject.Play();
          }
  
      }
  
      public void particleAuraPlay()
      {
          Debug.Log("HIT");
          playAura = true;
      }
  }
  </code></pre>