File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ var SceneManager = new Class({
180180 {
181181 entry = this . _start [ i ] ;
182182
183- this . start ( entry ) ;
183+ this . start ( entry , entry . scene . data ) ;
184184 }
185185
186186 this . _start . length = 0 ;
@@ -219,7 +219,7 @@ var SceneManager = new Class({
219219 {
220220 entry = this . _start [ i ] ;
221221
222- this . start ( entry ) ;
222+ this . start ( entry , entry . scene . data ) ;
223223 }
224224
225225 // Clear the pending lists
@@ -309,7 +309,7 @@ var SceneManager = new Class({
309309 {
310310 if ( this . game . isBooted )
311311 {
312- this . start ( key ) ;
312+ this . start ( key , newScene . sys . settings . data ) ;
313313 }
314314 else
315315 {
@@ -695,6 +695,11 @@ var SceneManager = new Class({
695695 }
696696 }
697697
698+ if ( sceneConfig . hasOwnProperty ( 'data' ) )
699+ {
700+ newScene . data = sceneConfig . data ;
701+ }
702+
698703 return newScene ;
699704 } ,
700705
@@ -951,7 +956,7 @@ var SceneManager = new Class({
951956 if ( entry . key === key )
952957 {
953958 entry . autoStart = true ;
954- entry . data = data ;
959+ entry . scene . data = data ;
955960 }
956961 }
957962
You can’t perform that action at this time.
0 commit comments