File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ var SceneManager = new Class({
140140 } ) ;
141141 }
142142 }
143-
143+
144144 game . events . once ( 'ready' , this . bootQueue , this ) ;
145145 } ,
146146
@@ -1011,7 +1011,7 @@ var SceneManager = new Class({
10111011
10121012 /**
10131013 * Runs the given Scene, but does not change the state of this Scene.
1014- *
1014+ *
10151015 * If the given Scene is paused, it will resume it. If sleeping, it will wake it.
10161016 * If not running at all, it will be started.
10171017 *
@@ -1032,6 +1032,20 @@ var SceneManager = new Class({
10321032
10331033 if ( ! scene )
10341034 {
1035+ var isFound = false ;
1036+ for ( var i = 0 ; i < this . _pending . length ; i ++ )
1037+ {
1038+ if ( this . _pending [ i ] . key === key )
1039+ {
1040+ isFound = true ;
1041+ break ;
1042+ }
1043+ }
1044+ if ( isFound )
1045+ {
1046+ this . queueOp ( 'stop' , key ) ;
1047+ this . queueOp ( 'start' , key , data ) ;
1048+ }
10351049 return this ;
10361050 }
10371051
You can’t perform that action at this time.
0 commit comments