解决场景变慢的原因

This commit is contained in:
lishuo committed 2021-09-15 09:26:41 +08:00
1 parent 0b1247249d
commit afb8c358f5
4 files changed
+12 -19

No files matched your search

+9 -9
View File
@@ -11,7 +11,7 @@ using Assets.Scripts.Devices;
public static class App
{
public static string Host = "http://192.168.0.101:5085/";
public static string Host = "http://192.168.0.102:5082/";
public static string AppVersion = Application.version;
@@ -85,13 +85,13 @@ public static class App
public readonly static bool isFullScreen = width/height>1.8;
static App()
{
#if !UNITY_EDITOR
//Host = "http://pf.juze.pro/";
//UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21000);
//TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21001);
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);
#endif
//#if !UNITY_EDITOR
// //Host = "http://pf.juze.pro/";
// //UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21000);
// //TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21001);
// 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);
//#endif
}
}
+2 -2
View File
@@ -259,8 +259,8 @@ public class UIManager : MonoBehaviour
{ false,Resources.Load<Sprite>("Images/p-4灰")},
{ true,Resources.Load<Sprite>("Images/p-4")},
};
var a = Resources.Load<TextAsset>("UI/simpleCountry");
var clist = JsonConvert.DeserializeObject<List<CountryInfo>>(a.text);
//var a = Resources.Load<TextAsset>("UI/simpleCountry");
//var clist = JsonConvert.DeserializeObject<List<CountryInfo>>(a.text);
if (_now == null)
{