From 6a4390f1b9ce28363f10297faca588aad04f7310 Mon Sep 17 00:00:00 2001 From: CaiYanPeng Date: Tue, 16 Nov 2021 18:41:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E5=88=97=E8=A1=A8=E8=BF=9B?= =?UTF-8?q?=E9=AA=91=E8=A1=8C=E9=87=8A=E6=94=BE=E5=86=85=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/App.cs | 4 +- Assets/Scripts/UI/Prefab/MapList/MapItem.cs | 23 ++++++---- .../UI/Prefab/Panel/MapListController.cs | 12 ++++- .../Scripts/UI/Prefab/Race/RaceItemScript.cs | 15 ++++--- Assets/Scripts/UI/Prefab/Race/RaceScript.cs | 16 ++++++- Assets/Scripts/Utils/Utils.cs | 44 +++++++++++++++---- ProjectSettings/ProjectSettings.asset | 6 +-- 7 files changed, 88 insertions(+), 32 deletions(-) diff --git a/Assets/Scripts/App.cs b/Assets/Scripts/App.cs index d333d6e9..805e6e11 100644 --- a/Assets/Scripts/App.cs +++ b/Assets/Scripts/App.cs @@ -15,7 +15,7 @@ using System.Timers; public static class App { - public static string Host = "http://192.168.0.101:5085/"; + public static string Host = "http://192.168.0.101:5084/"; public static string AppVersion = Application.version; @@ -111,7 +111,7 @@ public static class App Host = "https://wx.powerfun.com.cn/"; UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11000); TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11001); - Debug.unityLogger.logEnabled = false; + //Debug.unityLogger.logEnabled = false; #endif var isRower = PlayerPrefs.GetString("IsRowerMode"); if (!string.IsNullOrEmpty(isRower)) diff --git a/Assets/Scripts/UI/Prefab/MapList/MapItem.cs b/Assets/Scripts/UI/Prefab/MapList/MapItem.cs index 70e26c25..e0d7e3ea 100644 --- a/Assets/Scripts/UI/Prefab/MapList/MapItem.cs +++ b/Assets/Scripts/UI/Prefab/MapList/MapItem.cs @@ -43,8 +43,13 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler, } float? localY = null; MapRoute map; - public void Initial(MapRoute myMap) + Dictionary caches; + public void Initial(MapRoute myMap, Dictionary caches) { + if (caches != null) + { + this.caches = caches; + } map = myMap; //localY = transform.GetComponent().rect.height; //Debug.Log(localY); @@ -122,8 +127,8 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler, transform.Find("BtnInfo").GetComponent