Skip to content

Commit 697d096

Browse files
author
AleBles
committed
Added data to ScenePlugin, fixes phaserjs#3180
1 parent 6293233 commit 697d096

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/scene/ScenePlugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ var ScenePlugin = new Class({
101101
*
102102
* @return {Phaser.Scenes.ScenePlugin} This ScenePlugin object.
103103
*/
104-
start: function (key)
104+
start: function (key, data)
105105
{
106106
if (key === undefined) { key = this.key; }
107107

@@ -115,7 +115,7 @@ var ScenePlugin = new Class({
115115
else
116116
{
117117
this.manager.stop(this.key);
118-
this.manager.start(key);
118+
this.manager.start(key, data);
119119
}
120120
}
121121

@@ -152,7 +152,7 @@ var ScenePlugin = new Class({
152152
*
153153
* @return {Phaser.Scenes.ScenePlugin} This ScenePlugin object.
154154
*/
155-
launch: function (key)
155+
launch: function (key, data)
156156
{
157157
if (key && key !== this.key)
158158
{
@@ -162,7 +162,7 @@ var ScenePlugin = new Class({
162162
}
163163
else
164164
{
165-
this.manager.start(key);
165+
this.manager.start(key, data);
166166
}
167167
}
168168

0 commit comments

Comments
 (0)