- Home /
Question by
Giannis7312777 · Jul 22, 2013 at 02:17 PM ·
particle systemplaystop
Play particle system with GetKeyDown
Hello, is there any way to make a particle system start playing when I press for example, H key on the keyboard? The thing that I'm creating is a health system and I when the user press H he uses his heal potion. How can I make when the user press H play the particle system at the same time?
Thanks, any help is appriacted!
Comment
Answer by Briksins · Jul 22, 2013 at 02:21 PM
Just put into Update method check for input button like this:
void Update()
{
if (Input.GetKeyDown ("h"))
{
//do your visual effect
}
}