UNPKG

@petkoneo/phaser3-rex-plugins

Version:
11 lines (10 loc) 359 B
import OutlineEffectLayer from './OutlineEffectLayer.js'; export default function (config, addToScene) { if (config === undefined) { config = {}; } if (addToScene !== undefined) { config.add = addToScene; } var gameObject = new OutlineEffectLayer(this.scene, config); this.scene.add.existing(gameObject); return gameObject; };