public override void OnConnectedToPhoton() { Debug.Log("Connected to Photon"); RefreshRoomList(); PhotonNetwork.playerName = this.playerName; if (ConnectedToPhoton != null) ConnectedToPhoton.Invoke(true); }
public override void OnFailedToConnectToPhoton(DisconnectCause cause) { Debug.Log("Failed to connect to Photon: "+cause.ToString()); if (ConnectedToPhoton != null) ConnectedToPhoton.Invoke(false); }