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); }
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!"); } }
public void OnConnectedToMaster() { NetworkStateDisplay.ShowNetworkState("Connected to the master server..."); PhotonNetwork.LocalPlayer.NickName = PlayerPrefsSaveSystem.GetPlayerName(); Debug.Log("Connected to the server"); }
public void OnConnected() { NetworkStateDisplay.ShowNetworkState("Connected to the global server..."); }
public void OnLeftRoom() { NetworkStateDisplay.ShowNetworkState("Disconnected from lobby..."); }