We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0651ee commit 3a8c50fCopy full SHA for 3a8c50f
1 file changed
v3/src/tween/TweenManager.js
@@ -21,9 +21,10 @@ var TweenManager = new Class({
21
this._toProcess = 0;
22
},
23
24
+ // Scene is starting up
25
boot: function ()
26
{
- // Scene is starting up
27
+ this.timeScale = 1;
28
29
30
// Create a Tween and return it, but do NOT add it to the active or pending Tween lists
@@ -311,12 +312,20 @@ var TweenManager = new Class({
311
312
// Scene that owns this manager is shutting down
313
shutdown: function ()
314
315
+ this.killAll();
316
+
317
+ this._add = [];
318
+ this._pending = [];
319
+ this._active = [];
320
+ this._destroy = [];
321
322
+ this._toProcess = 0;
323
324
325
// Game level nuke
326
destroy: function ()
327
-
328
+ this.shutdown();
329
}
330
331
});
0 commit comments