Is there a way to get a player from the inventory?Solved

void OnItemDrop(Inventory inventory, int slot){}

Is there a way to retrieve the player from the 'inventory' variable?

Best Regards, NijoMeisteR!

private void OnItemDrop(Inventory inventory, int slot)
{
    PrintWarning($"Calling OnItemDrop({inventory}, {slot})");
    var networkview = inventory.GetComponent<uLinkNetworkView>().owner;
    var playerSession = GameManager.Instance.GetSession(networkview);
    if (playerSession != null)
        Puts($"  Player: {playerSession.Identity.Name}");
    else
        Puts($"  Inventory: {inventory}");
}
Thanks Wulf! 
Locked automatically