public void DisConnect() { quit = false; TCPclient.closedTCP(); //TCP close UDPclient.closedUDP(); Destroy(gameObject); }