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