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