Example #1
0
 public void NotifyPlayer(GameObject recipient)
 {
     foreach (var clothingItem in clothingItems)
     {
         PlayerAppearanceMessage.SendTo(gameObject, (int)clothingItem.Key, recipient, clothingItem.Value.GameObjectReference, true, false);
     }
 }
 public void NotifyPlayer(NetworkConnection recipient, bool clothItems = false)
 {
     if (clothItems)
     {
         for (int i = 0; i < characterSprites.Length; i++)
         {
             var clothItem = characterSprites[i];
             PlayerAppearanceMessage.SendTo(gameObject, i, recipient, clothItem.GameObjectReference, true, true);
         }
     }
 }
Example #3
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];
             PlayerAppearanceMessage.SendTo(gameObject, i, recipient, clothItem.GameObjectReference, true, true);
         }
     }
 }