function addClothing(key,clothing,currentScene){
            if(key != 'empty'&&key !=null){
                clothing = currentScene.add.sprite(0,0,key).setScale(0.3)
                clothing.setVisible(false);
                return clothing;
            }
            if(key == 'empty'|| key==null){
                clothing = null;
                return clothing;
            }
        }
//Add clothing to the scene, if it exists
Add clothing to the scene, if it exists
Add clothing to the scene if it exists
function addClothing(key,clothing,currentScene){
            if(key != 'empty'&&key !=null){
                clothing = currentScene.add.sprite(0,0,key).setScale(0.3)
                clothing.setVisible(false);
                return clothing;
            }
            if(key == 'empty'|| key==null){
                clothing = null;
                return clothing;
            }
        }
function addClothing ( key , clothing , currentScene ) { if ( key != 'empty' && key != null ) { clothing = currentScene . add . sprite ( 0 , 0 , key ) . setScale ( 0.3 ) clothing . setVisible ( false ) ; return clothing ; } if ( key == 'empty' || key == null ) { clothing = null ; return clothing ; } }
Add clothing to the scene, if it exists
Add clothing to the scene if it exists