Exemplo n.º 1
0
        private IEnumerator AwaitNetworkedPlayerRoutine()
        {
            while (gamePlayer == null)
            {
                yield return(null);
            }

            while (room.GamePlayers.Any(p => p.ID == 0))
            {
                yield return(null);
            }

            UI.UpdatePlayerInfo(room.GamePlayers);
            gamePlayer.CmdSetReady();
            room.Game.Cells.RegisterCellEventObserver(gamePlayer);
        }