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