示例#1
0
文件: Player.cs 项目: albpb2/discopub
        public void Reconnect()
        {
            _lobbyManager = FindObjectOfType <LobbyManager>();
            _captainsMess = FindObjectOfType <CaptainsMess>();

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

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