void ItemPickedUp(VRInventory.InventoryItemPickupResult result) { if (result.result == MobileVRInventory.VRInventory.ePickUpResult.Success) { switch (result.item.name) { case "Coin": UpdateCoinTextAnimated(); break; } } else { ShowMessage("You cannot carry anymore of those."); } }
public void OnItemPickedUp(VRInventory.InventoryItemPickupResult result) { Debug.Log(result.item.name); }