void connectGameServerOK(Json_ServerInfo server) { LoginFPort port = FPortManager.Instance.getFPort("LoginFPort") as LoginFPort; Debug.Log(SdkManager.URL); port.login(SdkManager.URL, StringKit.toInt(server.sid), () => { GameManager.Instance.loginBack(UiManager.Instance.getWindow <LoginWindow>()); }); }
private void PcConnectOK() { LoginFPort port = FPortManager.Instance.getFPort("LoginFPort") as LoginFPort; if (GameManager.Instance.GM) { port.loginGM(ServerManagerment.Instance.userName, 1, () => { GameManager.Instance.loginBack(fatherWindow); } ); } else { port.login("1", "1", ServerManagerment.Instance.userName, () => { GameManager.Instance.loginBack(fatherWindow); }); } }