Merge remote-tracking branch 'origin/dev_mobile' into dev_mobile_ble

This commit is contained in:
lishuo committed 2021-09-15 19:56:38 +08:00
commit 6640780c93
24 files changed
+570 -76

No files matched your search

+10 -8
View File
@@ -85,13 +85,15 @@ 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
Screen.sleepTimeout = SleepTimeout.NeverSleep;
}
}
+2
View File
@@ -126,6 +126,8 @@ public class LoginController : BaseScene
if (!Permission.HasUserAuthorizedPermission(Permission.ExternalStorageRead))
Permission.RequestUserPermission(Permission.ExternalStorageRead);
#elif UNITY_IOS
Input.location.Start();
#endif
Init();
if (loginScrollView != null)
+1 -1
View File
@@ -65,7 +65,7 @@ public class MainController : BaseScene
//});
if (App.MainSceneParam.ContainsKey("Name") && !string.IsNullOrEmpty(App.MainSceneParam["Name"]))
{
UIManager.PushHome();
UIManager.ShowHomePanel();
if (App.MainSceneParam["Name"] == "MapListPanel")
{
UIManager.ShowMapListPanel();
@@ -65,7 +65,10 @@ public class MapListController : PFUIPanel
{
App.topRectStartX = topRect.localPosition.x;
}
if (App.isFullScreen)
{
topRect.sizeDelta = new Vector2(topRect.sizeDelta.x + 20, topRect.sizeDelta.y);
}
var mc = transform.Find("MC");
UIManager.AddEvent(transform.Find("SwitchMode/BtnFilter").gameObject, EventTriggerType.PointerClick, b =>
{
@@ -217,6 +217,11 @@ public class RaceListScript : RaceScript
{
App.topRectStartX = topRect.localPosition.x;
}
if (App.isFullScreen)
{
topRect.sizeDelta = new Vector2(topRect.sizeDelta.x + 20, topRect.sizeDelta.y);
}
var mc = transform.Find("MC");
UIManager.AddEvent(transform.Find("SwitchMode/BtnFilter").gameObject, EventTriggerType.PointerClick, b =>
+4
View File
@@ -132,7 +132,11 @@ namespace Assets.Scripts
{
MonoBehaviour.DestroyImmediate(toast.gameObject);
}
#if UNITY_IOS || UNITY_ANDROID
var newToast = MonoBehaviour.Instantiate(Resources.Load<GameObject>("UI/Prefab/ToastContainer-mobile"));
#else
var newToast = MonoBehaviour.Instantiate(Resources.Load<GameObject>("UI/Prefab/ToastContainer"));
#endif
newToast.name = "ToastContainer";
newToast.GetComponent<RectTransform>().position = new Vector3(Screen.width / 2, Screen.height / 2, 0);
newToast.transform.parent = parent.transform;