Skip to content

Commit 3a8c50f

Browse files
committed
Finished TweenManager.shutdown and destroy.
1 parent d0651ee commit 3a8c50f

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

v3/src/tween/TweenManager.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ var TweenManager = new Class({
2121
this._toProcess = 0;
2222
},
2323

24+
// Scene is starting up
2425
boot: function ()
2526
{
26-
// Scene is starting up
27+
this.timeScale = 1;
2728
},
2829

2930
// 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({
311312
// Scene that owns this manager is shutting down
312313
shutdown: function ()
313314
{
315+
this.killAll();
316+
317+
this._add = [];
318+
this._pending = [];
319+
this._active = [];
320+
this._destroy = [];
321+
322+
this._toProcess = 0;
314323
},
315324

316325
// Game level nuke
317326
destroy: function ()
318327
{
319-
328+
this.shutdown();
320329
}
321330

322331
});

0 commit comments

Comments
 (0)