public void ClearAllCallback() { mGetServerDataFinishedCallback = null; mGetLastLoginServerInfoFinishedCallback = null; mGetAllRegionFinishedCallback = null; mGetLatelyLoginServerListFinishedCallback = null; mGetAllRecommServerFinishedCallback = null; mGetServerListFinishedCallback = null; mGetServerStateFinishedCallback = null; }
/// <summary> /// 获取全部大区列表 /// </summary> public void GetAllRegion(GetAllRegionFinishedDelegate finishCallback) { GlobalConfig globalConfig = GlobalConfig.GetInstance(); GlobalConfig.LoginInfoStruct loginInfo = globalConfig.LoginInfo; IBridge bridge = DBOSManager.getOSBridge(); string url = globalConfig.CSURLV + "GetAllRegion?show_marked=" + globalConfig.ServerType + "&account=" + loginInfo.AccName + "&game_mark=" + GlobalConfig.Instance.GameMark + "&device_mark=" + globalConfig.DeviceMark + "&ticket=" + WWW.EscapeURL(loginInfo.Ticket); MainGame.HttpRequest.GET(url, OnGetAllRegionFinished, null); mGetAllRegionFinishedCallback = finishCallback; }