我正在尝试使用windows窗体应用程序中的PlayFab访问令牌和应用程序ID连接到Photon。但每次连接状态停留在"ConnectingtoNameServer“时,我在互联网上找不到足够的线程来解决这个问题。下面是我的代码:
LoadBalancingClient lbclient = new LoadBalancingClient( "us",PAppID,"1.0",ExitGames.Client.Photon.ConnectionProtocol.Udp);
lbclient.AuthValues = new Photon.Realtime.AuthenticationValues();
lbclient.AuthValues.AuthType = Photon.Realtime.CustomAuthenticationType.Custom;
lbclient.AuthValues.AddAuthParameter("username", PlayfabIDUSer);
lbclient. AuthValues.AddAuthParameter("token", tok);
lbclient.AuthValues.UserId = PlayfabIDUSer;
lbclient.NameServerHost = "ns.exitgames.com";
lbclient.ConnectToRegionMaster("eu");任何帮助都将不胜感激。
https://stackoverflow.com/questions/58831863
复制相似问题