|
@@ -55591,9 +55591,18 @@ var BABYLON;
|
|
|
return this._started;
|
|
|
};
|
|
|
/**
|
|
|
- * Starts the particle system and begins to emit.
|
|
|
+ * Starts the particle system and begins to emit
|
|
|
+ * @param delay defines the delay in milliseconds before starting the system (0 by default)
|
|
|
*/
|
|
|
- ParticleSystem.prototype.start = function () {
|
|
|
+ ParticleSystem.prototype.start = function (delay) {
|
|
|
+ var _this = this;
|
|
|
+ if (delay === void 0) { delay = 0; }
|
|
|
+ if (delay) {
|
|
|
+ setTimeout(function () {
|
|
|
+ _this.start(0);
|
|
|
+ }, delay);
|
|
|
+ return;
|
|
|
+ }
|
|
|
this._started = true;
|
|
|
this._stopped = false;
|
|
|
this._actualFrame = 0;
|
|
@@ -59705,9 +59714,18 @@ var BABYLON;
|
|
|
return this._started;
|
|
|
};
|
|
|
/**
|
|
|
- * Starts the particle system and begins to emit.
|
|
|
+ * Starts the particle system and begins to emit
|
|
|
+ * @param delay defines the delay in milliseconds before starting the system (0 by default)
|
|
|
*/
|
|
|
- GPUParticleSystem.prototype.start = function () {
|
|
|
+ GPUParticleSystem.prototype.start = function (delay) {
|
|
|
+ var _this = this;
|
|
|
+ if (delay === void 0) { delay = 0; }
|
|
|
+ if (delay) {
|
|
|
+ setTimeout(function () {
|
|
|
+ _this.start(0);
|
|
|
+ }, delay);
|
|
|
+ return;
|
|
|
+ }
|
|
|
this._started = true;
|
|
|
this._stopped = false;
|
|
|
this._preWarmDone = false;
|