phaser/v3/src/actions/ToggleVisible.js

12 lines
195 B
JavaScript
Raw Normal View History

var ToggleVisible = function (items)
{
for (var i = 0; i < items.length; i++)
{
items[i].visible = !items[i].visible;
}
return items;
};
module.exports = ToggleVisible;