Skip to content

Commit 32ec561

Browse files
committed
Particle Emitter pause and resume
1 parent 46ae7e8 commit 32ec561

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

v3/src/gameobjects/emitter/ParticleEmitter.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,16 @@ var ParticleEmitter = new Class({
232232
return this;
233233
},
234234

235+
pause: function ()
236+
{
237+
this.active = false;
238+
},
239+
240+
resume: function ()
241+
{
242+
this.active = true;
243+
},
244+
235245
explode: function (count)
236246
{
237247
if (!count) count = 100;

0 commit comments

Comments
 (0)