mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Fixes #3029
This commit is contained in:
parent
df97aeca2f
commit
b3a9b2bed8
2 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
var CHECKSUM = {
|
var CHECKSUM = {
|
||||||
build: 'f62eb230-5da2-11e7-9471-651c81b97fd3'
|
build: '6c6f0010-5f6c-11e7-8930-6df9c1ac7bf6'
|
||||||
};
|
};
|
||||||
module.exports = CHECKSUM;
|
module.exports = CHECKSUM;
|
|
@ -147,9 +147,10 @@ GlobalStateManager.prototype = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var ok = key;
|
||||||
key = this.getKey(key, stateConfig);
|
key = this.getKey(key, stateConfig);
|
||||||
|
|
||||||
// console.log('GlobalStateManager.add', key, stateConfig, autoStart);
|
// console.log('GlobalStateManager.add', ok, key, stateConfig, autoStart);
|
||||||
|
|
||||||
var newState;
|
var newState;
|
||||||
|
|
||||||
|
@ -211,6 +212,8 @@ GlobalStateManager.prototype = {
|
||||||
{
|
{
|
||||||
var newState = new State(stateConfig);
|
var newState = new State(stateConfig);
|
||||||
|
|
||||||
|
newState.sys.settings.key = key;
|
||||||
|
|
||||||
newState.sys.init(this.game);
|
newState.sys.init(this.game);
|
||||||
|
|
||||||
this.createStateDisplay(newState);
|
this.createStateDisplay(newState);
|
||||||
|
@ -237,6 +240,8 @@ GlobalStateManager.prototype = {
|
||||||
{
|
{
|
||||||
newState.sys = new Systems(newState);
|
newState.sys = new Systems(newState);
|
||||||
|
|
||||||
|
newState.sys.settings.key = key;
|
||||||
|
|
||||||
newState.sys.init(this.game);
|
newState.sys.init(this.game);
|
||||||
|
|
||||||
this.createStateDisplay(newState);
|
this.createStateDisplay(newState);
|
||||||
|
@ -386,7 +391,7 @@ GlobalStateManager.prototype = {
|
||||||
{
|
{
|
||||||
if (data === undefined) { data = {}; }
|
if (data === undefined) { data = {}; }
|
||||||
|
|
||||||
console.log('start:', key);
|
// console.log('start:', key);
|
||||||
// console.dir(data);
|
// console.dir(data);
|
||||||
|
|
||||||
// if not booted, then put state into a holding pattern
|
// if not booted, then put state into a holding pattern
|
||||||
|
|
Loading…
Add table
Reference in a new issue