UNPKG

phaser3-rex-plugins

Version:
23 lines (17 loc) 743 B
import ObjectFactory from './ObjectFactory.js'; import ControlPointsFactory from './controlpoints/Factory.js'; import PropertiesPanelFactory from './propertiespanel/Factory.js'; import FullWindowRectangleFactory from './fullwindowrectangle/Factory.js'; import LayerManagerFactory from './layermanager/Factory.js'; import ShellFactory from './shell/Factory.js'; class GameObjectShellPlugin extends Phaser.Plugins.ScenePlugin { constructor(scene, pluginManager) { super(scene, pluginManager); this.add = new ObjectFactory(scene); } start() { var eventEmitter = this.scene.events; eventEmitter.on('destroy', this.destroy, this); } } export default GameObjectShellPlugin;