phaser/v3/src/gameobjects/group/GroupCreator.js
2017-09-17 19:30:41 +03:00

9 lines
304 B
JavaScript

var GameObjectCreator = require('../../scene/plugins/GameObjectCreator');
var Group = require('./Group');
// When registering a factory function 'this' refers to the GameObjectCreator context.
GameObjectCreator.register('group', function (config)
{
return new Group(this.scene, null, config);
});