mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 19:43:28 +00:00
14 lines
223 B
JavaScript
14 lines
223 B
JavaScript
|
var SetTileCollision = function (tile, collides)
|
||
|
{
|
||
|
if (collides)
|
||
|
{
|
||
|
tile.setCollision(true, true, true, true);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
tile.resetCollision();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
module.exports = SetTileCollision;
|