SceneManager.goto = function(sceneClass,bianliang) {
if (sceneClass) {
this._nextScene = new sceneClass(bianliang);
}
if (this._scene) {
this._scene.stop();
}
};
SceneManager.push = function(sceneClass,bianliang) {
this._stack.push(this._scene.constructor);
this.goto(sceneClass,bianliang);
};
SceneManager.goto = function(sceneClass,bianliang) {
if (sceneClass) {
this._nextScene = new sceneClass(bianliang);
}
if (this._scene) {
this._scene.stop();
}
};
SceneManager.push = function(sceneClass,bianliang) {
this._stack.push(this._scene.constructor);
this.goto(sceneClass,bianliang);
};