Пример #1
0
 public void OnDisconnected(DisconnectCause cause)
 {
     NetworkStateDisplay.ShowNetworkState("Disconnected from master server , Reconneting...");
     Debug.Log("Disconnected");
     EventManager.Raise(new GameResetEvent(E.Launch));
     PhotonNetwork.Reconnect();
     UIManager.FlushPanel();
     UIManager.RenderPanel(EnumUI.MainMenu);
 }
Пример #2
0
 public void OnJoinedRoom()
 {
     Debug.Log("Joined room");
     NetworkStateDisplay.ShowNetworkState("Joined lobby...");
     UIManager.FlushPanel();
     UIManager.FlushPanel();
     UIManager.RenderPanel(EnumUI.GamePanel);
     if (!PhotonNetwork.IsMasterClient)
     {
         Toast.MakeText(EnumToast.Debug, "Joined lobby!");
     }
 }
Пример #3
0
 public void OnConnectedToMaster()
 {
     NetworkStateDisplay.ShowNetworkState("Connected to the master server...");
     PhotonNetwork.LocalPlayer.NickName = PlayerPrefsSaveSystem.GetPlayerName();
     Debug.Log("Connected to the server");
 }
Пример #4
0
 public void OnConnected()
 {
     NetworkStateDisplay.ShowNetworkState("Connected to the global server...");
 }
Пример #5
0
 public void OnLeftRoom()
 {
     NetworkStateDisplay.ShowNetworkState("Disconnected from lobby...");
 }