* Fixed small bug stopping Tween.pause / resume from resuming correctly when called directly.

* Fixed an issue where Tweens.removeAll wasn't clearing tweens in the addition queue.
* Change: When you swap State all active tweens are now purged.
This commit is contained in:
Richard Davey
2013-09-30 11:15:50 +01:00
parent 497d15b5bc
commit 31bbf05ace
10 changed files with 518 additions and 54 deletions
+3 -1
View File
@@ -235,7 +235,9 @@ Phaser.StateManager.prototype = {
this.onShutDownCallback.call(this.callbackContext);
}
if (clearWorld) {
if (clearWorld)
{
this.game.tweens.removeAll();
this.game.world.destroy();