public void AddClothing(Item_ModularClothing clothing, bool buildCharacter) { if (!IsCharacterReady) { return; } if (IsOverlapping(clothing, out overlap)) { RemoveClothing(overlap); } clothing.ApplyClothing(CharacterAvatar); Clothing.Add(clothing); if (buildCharacter) { BuildCharacter(); } }
public void AddClothing(Item_ModularClothing clothing) { if (!IsCharacterReady) { return; } if (!CharacterAvatar.isActiveAndEnabled) { if (IsOverlapping(clothing, out overlap)) { RemoveClothing(overlap); } } clothing.ApplyClothing(CharacterAvatar); Clothing.Add(clothing); BuildCharacter(); }