public bool ContainsPlayer(GameObject player, out NetworkConnection conn)
{
conn = null;
if (player != null)
{
for (int i = this.LocalIndex; i < this.m_Connections.Count; i++)
{
conn = this.Get(i);
if (conn != null)
{
for (int j = 0; j < conn.playerControllers.Count; j++)
{
if (conn.playerControllers[j].IsValid && (conn.playerControllers[j].gameObject == player))
{
return true;
}
}
}
}
}
return false;
}