I’m studying to connect to a photon server in Unity, but when I shut down a photon server with a forced shutdown or a button
I’m trying to get the code to run at the bottom, and it works well with the OnLeftLobby callback function, but OnDisconnected
In the callback function, code cannot be executed and ends
public void DisconnectedPhoton()
{
PhotonNetwork.Disconnect();
}
public override void OnDisconnected(DisconnectCause cause)
{
pv.RPC("LeftPhoton", RpcTarget.All, myPlayer.ViewID);
}