示例#1
0
        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);
        }
示例#2
0
 public unsafe static long $Invoke1(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(HardwareProfile.IsLowEndDevice()));
 }
示例#3
0
 public unsafe static long $Invoke0(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(HardwareProfile.GetDeviceModel()));
 }