修改细节,安卓一进应用请求权限
This commit is contained in:
1 parent
15015f83a8
commit
48397f3d1d
12 files changed
+508
-66
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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 =>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user