Esempio n. 1
0
    public void NotifyPlayer(GameObject recipient)
    {
        //Validate data and make sure it is being pulled from Server List (Fixes Host problems)
        StorageSlots slotsData = new StorageSlots();

        foreach (InventorySlot slot in storageSlots.inventorySlots)
        {
            slotsData.inventorySlots.Add(InventoryManager.GetSlotFromUUID(slot.UUID, true));
        }

        StorageObjectSyncMessage.Send(recipient, gameObject, JsonUtility.ToJson(slotsData));
    }
Esempio n. 2
0
 public void NotifyPlayer(GameObject recipient)
 {
     StorageObjectSyncMessage.Send(recipient, gameObject, JsonUtility.ToJson(storageSlots));
 }