mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 07:31:11 +00:00
commit
d2dce27e25
2 changed files with 3 additions and 2 deletions
|
@ -319,7 +319,7 @@ var ScenePlugin = new Class({
|
|||
|
||||
if (target.sys.isSleeping())
|
||||
{
|
||||
target.sys.wake();
|
||||
target.sys.wake(GetFastValue(config, 'data'));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -5,10 +5,11 @@
|
|||
* @property {string} target - The Scene key to transition to.
|
||||
* @property {integer} [duration=1000] - The duration, in ms, for the transition to last.
|
||||
* @property {boolean} [sleep=false] - Will the Scene responsible for the transition be sent to sleep on completion (`true`), or stopped? (`false`)
|
||||
* @property {boolean} [remove=false] - Will the Scene responsible for the transition be removed from the Scene Manager after the transition completes?
|
||||
* @property {boolean} [allowInput=false] - Will the Scenes Input system be able to process events while it is transitioning in or out?
|
||||
* @property {boolean} [moveAbove] - Move the target Scene to be above this one before the transition starts.
|
||||
* @property {boolean} [moveBelow] - Move the target Scene to be below this one before the transition starts.
|
||||
* @property {function} [onUpdate] - This callback is invoked every frame for the duration of the transition.
|
||||
* @property {any} [onUpdateScope] - The context in which the callback is invoked.
|
||||
* @property {any} [data] - An object containing any data you wish to be passed to the target Scenes init / create methods.
|
||||
* @property {any} [data] - An object containing any data you wish to be passed to the target scene's init / create methods (if sleep is false) or to the target scene's wake event callback (if sleep is true).
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue