public void SetWardrobeCollectionSlot(string slotToChange, float fSlotNumber) { int slotNumber = ((int)fSlotNumber) - 1; if (slotNumber >= 0) { var wc = characterSystem.Recipes[thisRace][slotToChange][slotNumber]; if (Avatar.GetWardrobeCollection(wc.name)) { Avatar.UnloadWardrobeCollection(wc.name); } else { Avatar.SetSlot(wc); } } else { Avatar.UnloadAllWardrobeCollections(); } }
public void SetWardrobeCollectionSlot(string slotToChange, float fSlotNumber) { var raceRecipes = UMAAssetIndexer.Instance.GetRecipes(thisRace); int slotNumber = ((int)fSlotNumber) - 1; if (slotNumber >= 0) { var wc = raceRecipes[slotToChange][slotNumber]; if (Avatar.GetWardrobeCollection(wc.name)) { Avatar.UnloadWardrobeCollection(wc.name); } else { Avatar.SetSlot(wc); } } else { Avatar.UnloadAllWardrobeCollections(); } }