function handleClothingPlacement(clothingPosition) {

                    // multiple clothes of same type cant be on cat
                    if (clothingPosition.currentClothing != null && clothingPosition.currentClothing != sprite) { 
                        returnSpritetoCloset(clothingPosition.currentClothing);
                    } 

                    //play a random clothing russle sound from the clothingrussles array of sounds
                    utilities.playSoundEffect(Phaser.Utils.Array.GetRandom(clothingRussles));

                    //set the position of the sprite 
                    sprite.x = clothingPosition.x;
                    sprite.y = clothingPosition.y;
                    sprite.setDepth(clothingPosition.z);
                    //set the clothPositions current clothing to be what was just dropped on it
                    clothingPosition.currentClothing = sprite;

                }
// function to make sure that same article of clothing can't be placed on a cat twice
function to make sure that same article of clothing can't be placed on a cat twice
function to make sure that same article of clothing can ' t be placed on a cat twice
function handleClothingPlacement(clothingPosition) {
                    if (clothingPosition.currentClothing != null && clothingPosition.currentClothing != sprite) { 
                        returnSpritetoCloset(clothingPosition.currentClothing);
                    } 
                    utilities.playSoundEffect(Phaser.Utils.Array.GetRandom(clothingRussles));
                    sprite.x = clothingPosition.x;
                    sprite.y = clothingPosition.y;
                    sprite.setDepth(clothingPosition.z);
                    clothingPosition.currentClothing = sprite;
                }
function handleClothingPlacement ( clothingPosition ) { if ( clothingPosition . currentClothing != null && clothingPosition . currentClothing != sprite ) { returnSpritetoCloset ( clothingPosition . currentClothing ) ; } utilities . playSoundEffect ( Phaser . Utils . Array . GetRandom ( clothingRussles ) ) ; sprite . x = clothingPosition . x ; sprite . y = clothingPosition . y ; sprite . setDepth ( clothingPosition . z ) ; clothingPosition . currentClothing = sprite ; }
function to make sure that same article of clothing can't be placed on a cat twice
function to make sure that same article of clothing can ' t be placed on a cat twice
// multiple clothes of same type cant be on cat //play a random clothing russle sound from the clothingrussles array of sounds //set the position of the sprite  //set the clothPositions current clothing to be what was just dropped on it