David Catuhe 5 роки тому
батько
коміт
eb97933a3d
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      src/Particles/particle.ts

+ 1 - 0
src/Particles/particle.ts

@@ -213,6 +213,7 @@ export class Particle {
     /** @hidden */
     public _reset() {
         this.age = 0;
+        this.id = Particle._Count++; 
         this._currentColorGradient = null;
         this._currentSizeGradient = null;
         this._currentAngularSpeedGradient = null;