public static void DoCountAdjustInterface(Rect rect, Transferable trad, int index, int min, int max, bool flash = false, List <TransferableCountToTransferStoppingPoint> extraStoppingPoints = null, bool readOnly = false)
        {
            TransferableUIUtility.stoppingPoints.Clear();
            if (extraStoppingPoints != null)
            {
                TransferableUIUtility.stoppingPoints.AddRange(extraStoppingPoints);
            }
            for (int i = TransferableUIUtility.stoppingPoints.Count - 1; i >= 0; i--)
            {
                if (TransferableUIUtility.stoppingPoints[i].threshold != 0 && (TransferableUIUtility.stoppingPoints[i].threshold <= min || TransferableUIUtility.stoppingPoints[i].threshold >= max))
                {
                    TransferableUIUtility.stoppingPoints.RemoveAt(i);
                }
            }
            bool flag = false;

            for (int j = 0; j < TransferableUIUtility.stoppingPoints.Count; j++)
            {
                if (TransferableUIUtility.stoppingPoints[j].threshold == 0)
                {
                    flag = true;
                    break;
                }
            }
            if (!flag)
            {
                TransferableUIUtility.stoppingPoints.Add(new TransferableCountToTransferStoppingPoint(0, "0", "0"));
            }
            TransferableUIUtility.DoCountAdjustInterfaceInternal(rect, trad, index, min, max, flash, readOnly);
        }
        public static void DoCountAdjustInterface(Rect rect, Transferable trad, int index, int min, int max, bool flash = false, List <TransferableCountToTransferStoppingPoint> extraStoppingPoints = null)
        {
            TransferableUIUtility.stoppingPoints.Clear();
            if (extraStoppingPoints != null)
            {
                TransferableUIUtility.stoppingPoints.AddRange(extraStoppingPoints);
            }
            for (int i = TransferableUIUtility.stoppingPoints.Count - 1; i >= 0; i--)
            {
                TransferableCountToTransferStoppingPoint transferableCountToTransferStoppingPoint = TransferableUIUtility.stoppingPoints[i];
                if (transferableCountToTransferStoppingPoint.threshold != 0)
                {
                    TransferableCountToTransferStoppingPoint transferableCountToTransferStoppingPoint2 = TransferableUIUtility.stoppingPoints[i];
                    if (transferableCountToTransferStoppingPoint2.threshold > min)
                    {
                        TransferableCountToTransferStoppingPoint transferableCountToTransferStoppingPoint3 = TransferableUIUtility.stoppingPoints[i];
                        if (transferableCountToTransferStoppingPoint3.threshold >= max)
                        {
                            goto IL_007a;
                        }
                        continue;
                    }
                    goto IL_007a;
                }
                continue;
IL_007a:
                TransferableUIUtility.stoppingPoints.RemoveAt(i);
            }
            bool flag = false;

            for (int j = 0; j < TransferableUIUtility.stoppingPoints.Count; j++)
            {
                TransferableCountToTransferStoppingPoint transferableCountToTransferStoppingPoint4 = TransferableUIUtility.stoppingPoints[j];
                if (transferableCountToTransferStoppingPoint4.threshold == 0)
                {
                    flag = true;
                    break;
                }
            }
            if (!flag)
            {
                TransferableUIUtility.stoppingPoints.Add(new TransferableCountToTransferStoppingPoint(0, "0", "0"));
            }
            TransferableUIUtility.DoCountAdjustInterfaceInternal(rect, trad, index, min, max, flash);
        }