private void AddPendingPlayer(GameObject obj, int connectionId, NetworkInstanceId netId, short playerControllerId)
 {
     if (!this.m_PendingPlayers.ContainsKey(connectionId))
     {
         NetworkMigrationManager.ConnectionPendingPlayers value = default(NetworkMigrationManager.ConnectionPendingPlayers);
         value.players = new List <NetworkMigrationManager.PendingPlayerInfo>();
         this.m_PendingPlayers[connectionId] = value;
     }
     NetworkMigrationManager.PendingPlayerInfo item = default(NetworkMigrationManager.PendingPlayerInfo);
     item.netId = netId;
     item.playerControllerId = playerControllerId;
     item.obj = obj;
     this.m_PendingPlayers[connectionId].players.Add(item);
 }
 private GameObject FindPendingPlayer(int connectionId, NetworkInstanceId netId, short playerControllerId)
 {
     if (this.m_PendingPlayers.ContainsKey(connectionId))
     {
         for (int i = 0; i < this.m_PendingPlayers[connectionId].players.Count; i++)
         {
             NetworkMigrationManager.PendingPlayerInfo pendingPlayerInfo = this.m_PendingPlayers[connectionId].players[i];
             if (pendingPlayerInfo.netId == netId && pendingPlayerInfo.playerControllerId == playerControllerId)
             {
                 return(pendingPlayerInfo.obj);
             }
         }
     }
     return(null);
 }
 private GameObject FindPendingPlayer(int connectionId, NetworkInstanceId netId, short playerControllerId)
 {
     if (this.m_PendingPlayers.ContainsKey(connectionId))
     {
         using (List <NetworkMigrationManager.PendingPlayerInfo> .Enumerator enumerator = this.m_PendingPlayers[connectionId].players.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 NetworkMigrationManager.PendingPlayerInfo current = enumerator.Current;
                 if (current.netId == netId && (int)current.playerControllerId == (int)playerControllerId)
                 {
                     return(current.obj);
                 }
             }
         }
     }
     return((GameObject)null);
 }