NetworkHUD.autoConnect C# (CSharp) Method

autoConnect() private method

private autoConnect ( ) : void
return void
    private void autoConnect()
    {
        //loadingScreen = GameObject.Find("LoadingScreen");
        //print (loadingScreen.name);
        //DontDestroyOnLoad(transform.gameObject);

        theSourceFile = new FileInfo (Application.dataPath + "/IPConfig.txt");
        reader = theSourceFile.OpenText();
        text = reader.ReadLine();
        reader.Close();
        //Console.WriteLine(text);
        ipAddressInput.text = text;
        print (text);
        if (text != null)
        {
            //	loadingScreen.GetComponent<Image>().enabled = true;
            clientJoin();
        }

        //	ipAddressInput.text = "localhost";
    }