From 9d48c05ef039bd21cdaa1349b419d424eb2985ad Mon Sep 17 00:00:00 2001 From: lishuo Date: Mon, 24 Jan 2022 11:39:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E9=BB=98=E8=AE=A43d=E8=A7=86?= =?UTF-8?q?=E8=A7=92&loading=E9=A1=B5=E9=9D=A2=E5=9B=BD=E6=97=97=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Scenes/Ride/Scripts/BaseUIManager.cs | 10 +++++----- .../Scripts/Scenes/Ride/Scripts/LoadingController.cs | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Assets/Scripts/Scenes/Ride/Scripts/BaseUIManager.cs b/Assets/Scripts/Scenes/Ride/Scripts/BaseUIManager.cs index e0fb06e1..4091cd92 100644 --- a/Assets/Scripts/Scenes/Ride/Scripts/BaseUIManager.cs +++ b/Assets/Scripts/Scenes/Ride/Scripts/BaseUIManager.cs @@ -367,11 +367,11 @@ namespace Assets.Scenes.Ride.Scripts } else { - //如果是参赛选手默认进入3d视角 - if (mainController.cyclingModel == Model.CyclingModel.Competition && !mainController.competition.CanWatch) - { - return; - } + ////如果是参赛选手默认进入3d视角 + //if (mainController.cyclingModel == Model.CyclingModel.Competition && !mainController.competition.CanWatch) + //{ + // return; + //} mainController.Is3dView = false; ChangeView(null); } diff --git a/Assets/Scripts/Scenes/Ride/Scripts/LoadingController.cs b/Assets/Scripts/Scenes/Ride/Scripts/LoadingController.cs index 17e8bd36..57657811 100644 --- a/Assets/Scripts/Scenes/Ride/Scripts/LoadingController.cs +++ b/Assets/Scripts/Scenes/Ride/Scripts/LoadingController.cs @@ -128,8 +128,8 @@ namespace Assets.Scenes.Ride.Scripts uploadByUserName.text = userList[0].Name; var countryUrl = App.Host + $"User/GetCountryImg?userid={userList[0].Id}"; Utils.DisplayImage(head, userList[0].HeadImage);//头像 - country.texture = cyclingController.GetCountryImageByCode(route.CountryCode);//上传者国家 - mapCountry.texture = cyclingController.GetCountryImageByName(userList[0].Country);//路书国家 + country.texture = cyclingController.GetCountryImageByName(userList[0].Country);//上传者国家 + mapCountry.texture = cyclingController.GetCountryImageByCode(route.CountryCode);//路书国家 //Utils.DisplayImage(altitudeGraph, route.AltitudeGraph);//海拔图 Utils.DisplayImageAysnc(StartCoroutine, altitudeGraph, route.AltitudeGraph, DowloadCallBack); } @@ -196,7 +196,7 @@ namespace Assets.Scenes.Ride.Scripts myselfItemScript.SetName(App.CurrentUser.Nickname); myselfItemScript.SetTimer("--:--:--"); myselfItemScript.SetHead(App.CurrentUser.WxHeadImg); - var texture = cyclingController.GetCountryImageByCode(App.CurrentUser.Country); + var texture = cyclingController.GetCountryImageByName(App.CurrentUser.Country); myselfItemScript.SetCountry(texture); } else