private void CloseClient(int Index) { closing = true; Debug.Log("Connection from " + Ip + " has been terminated"); //PlayerLeft hostServer.SendClientDisconnect(); Socket.Close(); Socket = null; }