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