public static bool IsLowEndDevice() { int hardwareProfile = PlayerSettings.GetHardwareProfile(); if (hardwareProfile == 1) { return(false); } if (hardwareProfile != 2) { string deviceModel = HardwareProfile.GetDeviceModel(); int i = 0; int num = HardwareProfile.LOW_END_DEVICES.Length; while (i < num) { if (deviceModel == HardwareProfile.LOW_END_DEVICES[i]) { return(true); } i++; } return(false); } return(true); }
public unsafe static long $Invoke1(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(HardwareProfile.IsLowEndDevice())); }
public unsafe static long $Invoke0(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(HardwareProfile.GetDeviceModel())); }