I have this, i want particles to emit when i press space, and to stop when i realease.
function FixedUpdate() {
if (Input.GetKeyDown ("space")) {
particleEmitter.emit = true;
}
if Input.GetKeyUp ("space")) {
particleEmitter.emit = false;
}
}
but it comes up with errors. What am i doing wrong?