UNPKG

phaser4-rex-plugins

Version:
16 lines (13 loc) 357 B
import { Wait } from '../../../nodes'; import IsPlainObject from '../../../../../utils/object/IsPlainObject.js'; /* sequence: - wait: 1000 # - wait: {duration:1000} */ var CreateWaitNode = function (data) { return new Wait({ duration: (IsPlainObject(data)) ? data.duration : data, }) } export default CreateWaitNode