Ejemplo n.º 1
0
        public void Reconnect()
        {
            _lobbyManager = FindObjectOfType <LobbyManager>();
            _captainsMess = FindObjectOfType <CaptainsMess>();

            if (isLocalPlayer)
            {
                if (_lobbyManager != null && IsReady())
                {
                    _lobbyManager.ChangeReadyStatus();
                }

                _updatePlayerLobbyInfo = true;
                StartCoroutine(RequestForPlayerUpdates());
            }
        }