Exemplo n.º 1
0
    private void AutoConnectToMaster()
    {
        bool couldConnect = false;

        if (!string.IsNullOrEmpty(client.MasterServerAddress))
        {
            couldConnect = client.Connect();
        }
        else
        {
            couldConnect = client.ConnectToRegionMaster("EU");
        }

        if (!couldConnect)
        {
            client.DebugReturn(DebugLevel.ERROR, "Can't connect to: " + client.CurrentServerAddress);
        }
    }