Пример #1
0
 public void NotifyPlayer(GameObject recipient)
 {
     for (int i = 0; i < clothingSlots.Length; i++)
     {
         var clothItem = clothingSlots[i];
         EquipmentSpritesMessage.SendTo(gameObject, i, recipient, clothItem.GameObjectReference, true, false);
     }
 }
Пример #2
0
 public void NotifyPlayer(GameObject recipient, bool clothItems = false)
 {
     if (!clothItems)
     {
         PlayerCustomisationMessage.SendTo(gameObject, recipient, ThisCharacter);
     }
     else
     {
         for (int i = 0; i < characterSprites.Length; i++)
         {
             var clothItem = characterSprites[i];
             EquipmentSpritesMessage.SendTo(gameObject, i, recipient, clothItem.GameObjectReference, true, true);
         }
     }
 }