Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
            }
        }