Пример #1
0
 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.");
     }
 }
Пример #2
0
 public void AddAvatarClothingObject(AvatarClothingObject clothingObject)
 {
     if (clothingObject == null)
     {
         throw new ArgumentNullException("clothingObject ");
     }
     mAvatarClothingObjects.Add(clothingObject);
 }