mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 15:41:37 +00:00
Fixed plugin ref
This commit is contained in:
parent
83ef7402a1
commit
d2d03d0312
1 changed files with 2 additions and 2 deletions
|
@ -375,7 +375,7 @@ var SpinePlugin = new Class({
|
||||||
*/
|
*/
|
||||||
add: function (x, y, key, animationName, loop)
|
add: function (x, y, key, animationName, loop)
|
||||||
{
|
{
|
||||||
var spineGO = new SpineGameObject(this.scene, this.scene.sys.spine, x, y, key, animationName, loop);
|
var spineGO = new SpineGameObject(this.scene, this, x, y, key, animationName, loop);
|
||||||
|
|
||||||
this.scene.sys.displayList.add(spineGO);
|
this.scene.sys.displayList.add(spineGO);
|
||||||
this.scene.sys.updateList.add(spineGO);
|
this.scene.sys.updateList.add(spineGO);
|
||||||
|
@ -404,7 +404,7 @@ var SpinePlugin = new Class({
|
||||||
var animationName = GetValue(config, 'animationName', null);
|
var animationName = GetValue(config, 'animationName', null);
|
||||||
var loop = GetValue(config, 'loop', false);
|
var loop = GetValue(config, 'loop', false);
|
||||||
|
|
||||||
var spineGO = new SpineGameObject(this.scene, this.scene.sys.spine, 0, 0, key, animationName, loop);
|
var spineGO = new SpineGameObject(this.scene, this, 0, 0, key, animationName, loop);
|
||||||
|
|
||||||
if (addToScene !== undefined)
|
if (addToScene !== undefined)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue