强制转换为int
parent
2e74f05f60
commit
ad74c26b48
|
@ -64,7 +64,7 @@ public class NotchScreenUtil
|
|||
try
|
||||
{
|
||||
#if UNITY_IOS
|
||||
height = Mathf.Floor(Convert.ToSingle(m_GetNotchHeight()));
|
||||
height = (int)Mathf.Floor(Convert.ToSingle(m_GetNotchHeight()));
|
||||
#elif UNITY_ANDROID
|
||||
height = jo.CallStatic<int>("getNotchHeight");
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue