private void ConnectPressed()
    {
        Match match_ip = Regex.Match(inIP.text, @"\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b");

        if (match_ip.Success)
        {
            ConnectionData.selectedIP = inIP.text;
            connect.image.color       = Color.green;

            Debug.Log("IP: " + ConnectionData.selectedIP + " : " + ConnectionData.portOutTCP);

            StartScreen.InitTCP();
            Layer.tcpClient.Send(PackageType.Connected, "");

            Hide();
            playerSelection.GetComponent <PlayerSelection>().Show();
        }
        else
        {
            connect.image.color = Color.red;
            Debug.LogWarning("Invalid Input");
        }
    }