save something before disconnecting player

Options
I need to move an object from the player before it disconnects, which has information that was downloaded, try using

public override void OnDisconnected(DisconnectCause cause)

but this happens after photon removes the player, and it gives me null reference error.

I need your help :(

Comments

  • GLucas
    Options
    Are you saying you need to move the player or an object that the player has or values from a player script before disconnection?