UNPKG

phaser4-rex-plugins

Version:
10 lines (8 loc) 285 B
var AddFilterListMethod = function (name, callback) { var FilterListComponent = Phaser.GameObjects.Components.FilterList.prototype; if (FilterListComponent[name]) { return; } FilterListComponent[name] = callback; } export default AddFilterListMethod;