Exemplo n.º 1
0
 static void MenuClicked()
 {
     Debug.Log(ResolutionCheck.IsPadResolution() ? "是 Pad" : "不是 Pad");
     Debug.Log(ResolutionCheck.IsPhoneResolution() ? "是 Phone" : "不是 Phone");
     Debug.Log(ResolutionCheck.IsPhone15Resolution() ? "是 4s" : "不是 4s");
     Debug.Log(ResolutionCheck.IsiPhoneXResolution() ? "是 iphonex" : "不是 iphonex");
 }
 private static void MenuClicked()
 {
     Debug.Log(ResolutionCheck.IsPadResolution() ? "是Pad分辨率" : "不是Pad分辨率");
     Debug.Log(ResolutionCheck.IsPhoneResolution() ? "是iPhone分辨率" : "不是iPhone分辨率");
     Debug.Log(ResolutionCheck.IsPhoneXResolution() ? "是iPhoneX分辨率" : "不是iPhoneX分辨率");
 }