var Enemy = new Phaser.Class({
Extends: SpinePlugin.SpineGameObject,
initialize:
function Enemy (scene)
{
SpinePlugin.SpineGameObject.call(this, scene, REFERENCE_SPINE_PLUGIN, 0, 0, 'skeleton', 'animation', true);
}
...
}
how to send the parameter REFERENCE_SPINE_PLUGIN correctly?
I tried to call: "Spine" / "spine" / "SpinePlugin" / scene.sys['Spine'] / scene.sys['SpinePlugin']
but without success.
I don’t know if I get the problem right, but the plugin in your initial code has the Mapping spine, so in a scene you would reference the plugin with this.spine or in another context, where scene is a SceneObject: scene.spine.