Okay, So I am playing with the unity particle emitter, and some of the emitter even if you tick "one shot" it still boom over and over again
below is how i fix this
in your shooting script, by default is as below
================================
Instantiate(explosionPrefab, pos, rot);
Change it to as below
=================
var haha : Transform;
haha= Instantiate(explosionPrefab, pos, rot);
haha.particleEmitter.Emit();
Now it should only emit once
No comments:
Post a Comment