Transferring Ownership Before Disconnecting.
Sorry if this is a super noob question but I have an inventory system that is synced over the network. But if a client drops an item then leaves the server the items leave with him. Ive been trying to transfer the ownership of the Photon view but I cant seem to find the correct way of checking when the player is about to disconnect from the server. PhotonNetwork.connectionState doesnt get passed "Joined" when closing the program.