UNPKG

phaser4-rex-plugins

Version:
7 lines (6 loc) 284 B
import ToggleSwitchShape from './ToggleSwitchShape.js'; export default function (x, y, width, height, color, config) { var gameObject = new ToggleSwitchShape(this.scene, x, y, width, height, color, config); this.scene.add.existing(gameObject); return gameObject; };