private void ChangeOutfit(OutfitType outfitType, bool isNext) { switch (outfitType) { case OutfitType.Hair: if (isNext) { currHairIndex = currHairIndex < 5 ? ++currHairIndex : 1; } else { currHairIndex = currHairIndex > 1 ? --currHairIndex : 5; } equipmentMgr.ChangeOutfit(outfitType, currHairIndex); break; case OutfitType.Cloth: if (isNext) { currClothIndex = currClothIndex < 5 ? ++currClothIndex : 1; } else { currClothIndex = currClothIndex > 1 ? --currClothIndex : 5; } equipmentMgr.ChangeOutfit(outfitType, currClothIndex); break; case OutfitType.Pant: if (isNext) { currPantIndex = currPantIndex < 5 ? ++currPantIndex : 1; } else { currPantIndex = currPantIndex > 1 ? --currPantIndex : 5; } equipmentMgr.ChangeOutfit(outfitType, currPantIndex); break; case OutfitType.Shoes: if (isNext) { currShoesIndex = currShoesIndex < 5 ? ++currShoesIndex : 1; } else { currShoesIndex = currShoesIndex > 1 ? --currShoesIndex : 5; } equipmentMgr.ChangeOutfit(outfitType, currShoesIndex); break; } }