public void RemoveAvatarClothingObject(AvatarClothingObject clothingObjectToRemove) { if (!mAvatarClothingObjects.Remove(clothingObjectToRemove)) { throw new ArgumentException("Avatar Clothing Object trying to be removed does not exist in the user's inventory."); } }
public void AddAvatarClothingObject(AvatarClothingObject clothingObject) { if (clothingObject == null) { throw new ArgumentNullException("clothingObject "); } mAvatarClothingObjects.Add(clothingObject); }