UNPKG

phaser4-rex-plugins

Version:
17 lines (13 loc) 469 B
import ObjectFactory from './logic/behaviortree/ObjectFactory.js'; import Factory from './logic/behaviortree/Factory.js'; class BehaviorTreePlugin extends Phaser.Plugins.BasePlugin { constructor(pluginManager) { super(pluginManager); this.add = new ObjectFactory(); } start() { var eventEmitter = this.game.events; eventEmitter.on('destroy', this.destroy, this); } } export default BehaviorTreePlugin;