UNPKG

phaser4-rex-plugins

Version:
6 lines (5 loc) 202 B
var OnMotionComplete = function (gameObject, group, no) { gameObject.emit(`motion.complete-${group}`, no); gameObject.emit('motion.complete', group, no); } export default OnMotionComplete;