reconnection

hello,i have a turn based game which has PlayerTTL set to 60 seconds for players to reconnect if they disconnect .my question is if a player disconnects how can i tell the other player to wait for 60 seconds .

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @Romin,

    Thank you for choosing Photon!

    There is a callback OnPlayerActivityChanged(PhotonPlayer remotePlayer) check if remotePlayer.IsInactive == true to know that the remote player has become inactive. That's when you want to start waiting.
  • Romin
    Romin
    edited December 2017
    HI,
    Thank you , that worked for me