mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
fix(spine-plugin): errors throw while game destroy
This commit is contained in:
parent
d3536fb138
commit
9ff874edf1
1 changed files with 4 additions and 6 deletions
|
@ -1128,18 +1128,16 @@ var SpinePlugin = new Class({
|
||||||
*/
|
*/
|
||||||
gameDestroy: function ()
|
gameDestroy: function ()
|
||||||
{
|
{
|
||||||
this.destroy();
|
this.pluginManager.removeGameObject('spine', true, true);
|
||||||
|
this.pluginManager.removeGameObject('spineContainer', true, true);
|
||||||
|
this.pluginManager = null;
|
||||||
|
|
||||||
if (sceneRenderer)
|
if (sceneRenderer)
|
||||||
{
|
{
|
||||||
sceneRenderer.dispose();
|
sceneRenderer.dispose();
|
||||||
|
sceneRenderer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.sceneRenderer = null;
|
this.sceneRenderer = null;
|
||||||
this.pluginManager = null;
|
|
||||||
|
|
||||||
this.pluginManager.removeGameObject('spine', true, true);
|
|
||||||
this.pluginManager.removeGameObject('spineContainer', true, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue