UNPKG

phaser4-rex-plugins

Version:
13 lines (10 loc) 438 B
import StatesText from './StatesText.js'; import ObjectFactory from '../ObjectFactory.js'; import SetValue from '../../../plugins/utils/object/SetValue.js'; ObjectFactory.register('statesText', function (config) { var gameObject = new StatesText(this.scene, config); this.scene.add.existing(gameObject); return gameObject; }); SetValue(window, 'RexPlugins.UI.StatesText', StatesText); export default StatesText;