소스 검색

Fix particle id

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;