mirror of
https://github.com/photonstorm/phaser
synced 2024-12-17 08:33:40 +00:00
Docs for scene events
This commit is contained in:
parent
7c4fd3fadc
commit
5058b337bd
1 changed files with 21 additions and 21 deletions
|
@ -41,29 +41,29 @@ var ScenePlugin = new Class({
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is called when the Scene boots. It is only ever called once.
|
* This method is called when the Scene boots. It is only ever called once.
|
||||||
*
|
*
|
||||||
* By this point the plugin properties `scene` and `systems` will have already been set.
|
* By this point the plugin properties `scene` and `systems` will have already been set.
|
||||||
*
|
*
|
||||||
* In here you can listen for Scene events and set-up whatever you need for this plugin to run.
|
* In here you can listen for {@link Phaser.Scenes.Events Scene events} and set-up whatever you need for this plugin to run.
|
||||||
* Here are the Scene events you can listen to:
|
* Here are the Scene events you can listen to:
|
||||||
*
|
*
|
||||||
* start
|
* - start
|
||||||
* ready
|
* - ready
|
||||||
* preupdate
|
* - preupdate
|
||||||
* update
|
* - update
|
||||||
* postupdate
|
* - postupdate
|
||||||
* resize
|
* - resize
|
||||||
* pause
|
* - pause
|
||||||
* resume
|
* - resume
|
||||||
* sleep
|
* - sleep
|
||||||
* wake
|
* - wake
|
||||||
* transitioninit
|
* - transitioninit
|
||||||
* transitionstart
|
* - transitionstart
|
||||||
* transitioncomplete
|
* - transitioncomplete
|
||||||
* transitionout
|
* - transitionout
|
||||||
* shutdown
|
* - shutdown
|
||||||
* destroy
|
* - destroy
|
||||||
*
|
*
|
||||||
* At the very least you should offer a destroy handler for when the Scene closes down, i.e:
|
* At the very least you should offer a destroy handler for when the Scene closes down, i.e:
|
||||||
*
|
*
|
||||||
* ```javascript
|
* ```javascript
|
||||||
|
|
Loading…
Reference in a new issue