You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/StateManager.js
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -67,62 +67,62 @@ Phaser.StateManager = function (game, pendingState) {
67
67
this.current='';
68
68
69
69
/**
70
-
* @property {function} onInitCallback - This will be called when the state is started (i.e. set as the current active state).
70
+
* @property {function} onInitCallback - This is called when the state is set as the active state.
71
71
*/
72
72
this.onInitCallback=null;
73
73
74
74
/**
75
-
* @property {function} onPreloadCallback - This will be called when init states (loading assets...).
75
+
* @property {function} onPreloadCallback - This is called when the state starts to load assets.
76
76
*/
77
77
this.onPreloadCallback=null;
78
78
79
79
/**
80
-
* @property {function} onCreateCallback - This will be called when create states (setup states...).
80
+
* @property {function} onCreateCallback - This is called when the state preload has finished and creation begins.
81
81
*/
82
82
this.onCreateCallback=null;
83
83
84
84
/**
85
-
* @property {function} onUpdateCallback - This will be called when State is updated, this doesn't happen during load (@see onLoadUpdateCallback).
85
+
* @property {function} onUpdateCallback - This is called when the state is updated, every game loop. It doesn't happen during preload (@see onLoadUpdateCallback).
86
86
*/
87
87
this.onUpdateCallback=null;
88
88
89
89
/**
90
-
* @property {function} onRenderCallback - This will be called when the State is rendered, this doesn't happen during load (see onLoadRenderCallback).
90
+
* @property {function} onRenderCallback - This is called post-render. It doesn't happen during preload (see onLoadRenderCallback).
91
91
*/
92
92
this.onRenderCallback=null;
93
93
94
94
/**
95
-
* @property {function} onPreRenderCallback - This will be called before the State is rendered and before the stage is cleared.
95
+
* @property {function} onPreRenderCallback - This is called before the state is rendered and before the stage is cleared.
96
96
*/
97
97
this.onPreRenderCallback=null;
98
98
99
99
/**
100
-
* @property {function} onLoadUpdateCallback - This will be called when the State is updated but only during the load process.
100
+
* @property {function} onLoadUpdateCallback - This is called when the State is updated during the preload phase.
101
101
*/
102
102
this.onLoadUpdateCallback=null;
103
103
104
104
/**
105
-
* @property {function} onLoadRenderCallback - This will be called when the State is rendered but only during the load process.
105
+
* @property {function} onLoadRenderCallback - This is called when the State is rendered during the preload phase.
106
106
*/
107
107
this.onLoadRenderCallback=null;
108
108
109
109
/**
110
-
* @property {function} onPausedCallback - This will be called once each time the game is paused.
110
+
* @property {function} onPausedCallback - This is called when the game is paused.
111
111
*/
112
112
this.onPausedCallback=null;
113
113
114
114
/**
115
-
* @property {function} onResumedCallback - This will be called once each time the game is resumed from a paused state.
115
+
* @property {function} onResumedCallback - This is called when the game is resumed from a paused state.
116
116
*/
117
117
this.onResumedCallback=null;
118
118
119
119
/**
120
-
* @property {function} onPauseUpdateCallback - This will be called every frame while the game is paused.
120
+
* @property {function} onPauseUpdateCallback - This is called every frame while the game is paused.
121
121
*/
122
122
this.onPauseUpdateCallback=null;
123
123
124
124
/**
125
-
* @property {function} onShutDownCallback - This will be called when the state is shut down (i.e. swapped to another state).
125
+
* @property {function} onShutDownCallback - This is called when the state is shut down (i.e. swapped to another state).
0 commit comments