iphone7以下光圈去掉
This commit is contained in:
1 parent
806116af19
commit
26250f3e47
3 files changed
+21
-1
No files matched your search
@@ -77,6 +77,18 @@ namespace Assets.Scripts
|
||||
return output;
|
||||
}
|
||||
|
||||
public static bool isLowIPhone()
|
||||
{
|
||||
var info = SystemInfo.deviceModel;
|
||||
if (info.Contains("iPhone"))
|
||||
{
|
||||
//iPhone2,1
|
||||
var s = info.Replace("iPhone", "").Split(',');
|
||||
return s.Length == 2 && int.Parse(s[0]) < 9;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/*获取ip*/
|
||||
/*显示简略提示,需要拖Toast的预制件,且保证其他组件名字不是Toast,ToastContainer*/
|
||||
private static Dictionary<int, string> _toastDict;
|
||||
|
||||
Reference in new issue
Block a user