public override void OnClientError(NetworkConnection conn, int errorCode) { base.OnClientError(conn, errorCode); Debug.Log("CLIENT ERROR"); StopClient(); NetworkingMode = NetworkingModes.None; MenuUIManager.Instance.ErrorPopup.SetActive(true); MenuUIManager.Instance.ProcessingPopup.SetActive(false); }
public override void OnClientDisconnect(NetworkConnection conn) { Debug.Log("CLIENT DISCONNECTED"); StopClient(); NetworkingMode = NetworkingModes.None; if (MenuUIManager.Instance != null) { MenuUIManager.Instance.ErrorPopup.SetActive(true); MenuUIManager.Instance.ProcessingPopup.SetActive(false); } }