phaser4-rex-plugins
Version:
13 lines (10 loc) • 415 B
JavaScript
import Custom from './Custom.js';
import ObjectFactory from '../ObjectFactory.js';
import SetValue from '../../../plugins/utils/object/SetValue.js';
ObjectFactory.register('custom', function (config) {
var gameObject = new Custom(this.scene, config);
this.scene.add.existing(gameObject);
return gameObject;
});
SetValue(window, 'RexPlugins.Spinner.Custom', Custom);
export default Custom;