Skip to content

Commit d2d03d0

Browse files
committed
Fixed plugin ref
1 parent 83ef740 commit d2d03d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/spine/src/SpinePlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ var SpinePlugin = new Class({
375375
*/
376376
add: function (x, y, key, animationName, loop)
377377
{
378-
var spineGO = new SpineGameObject(this.scene, this.scene.sys.spine, x, y, key, animationName, loop);
378+
var spineGO = new SpineGameObject(this.scene, this, x, y, key, animationName, loop);
379379

380380
this.scene.sys.displayList.add(spineGO);
381381
this.scene.sys.updateList.add(spineGO);
@@ -404,7 +404,7 @@ var SpinePlugin = new Class({
404404
var animationName = GetValue(config, 'animationName', null);
405405
var loop = GetValue(config, 'loop', false);
406406

407-
var spineGO = new SpineGameObject(this.scene, this.scene.sys.spine, 0, 0, key, animationName, loop);
407+
var spineGO = new SpineGameObject(this.scene, this, 0, 0, key, animationName, loop);
408408

409409
if (addToScene !== undefined)
410410
{

0 commit comments

Comments
 (0)