// Token: 0x06004C16 RID: 19478 RVA: 0x00129BAC File Offset: 0x00127DAC
 private static bool Message(GameObject target, string messageName, GameObject scan, global::DragEventKind kind, ref bool drop)
 {
     if (target)
     {
         GameObject            gameObject    = global::DropNotification.scanItem;
         bool                  flag          = global::DropNotification.stopDrag;
         global::DragEventKind dragEventKind = global::DropNotification.inDrag;
         try
         {
             global::DropNotification.scanItem = scan;
             global::DropNotification.stopDrag = drop;
             global::DropNotification.inDrag   = kind;
             target.NGUIMessage(messageName);
             drop = global::DropNotification.stopDrag;
             return(true);
         }
         finally
         {
             global::DropNotification.scanItem = gameObject;
             global::DropNotification.stopDrag = flag;
             global::DropNotification.inDrag   = dragEventKind;
         }
         return(false);
     }
     return(false);
 }
    // Token: 0x06004C17 RID: 19479 RVA: 0x00129C38 File Offset: 0x00127E38
    internal static bool DropMessage(ref global::DropNotificationFlags flags, global::DragEventKind kind, GameObject Pressed, GameObject Released)
    {
        bool result;
        bool flag;
        global::DropNotificationFlags dropNotificationFlags;
        global::DropNotificationFlags dropNotificationFlags2;
        global::DropNotificationFlags dropNotificationFlags3;
        string messageName;
        string messageName2;

        switch (kind)
        {
        case global::DragEventKind.Drag:
            result = true;
            if (Released)
            {
                flag = true;
                dropNotificationFlags  = global::DropNotificationFlags.DragDrop;
                dropNotificationFlags2 = global::DropNotificationFlags.DragLand;
                dropNotificationFlags3 = global::DropNotificationFlags.DragReverse;
                messageName            = "OnDrop";
                messageName2           = "OnLand";
            }
            else
            {
                flag = false;
                dropNotificationFlags  = (global::DropNotificationFlags)-2147483648;
                dropNotificationFlags3 = global::DropNotificationFlags.DragLandOutside;
                dropNotificationFlags2 = global::DropNotificationFlags.DragLandOutside;
                messageName            = "----";
                messageName2           = "OnLandOutside";
            }
            break;

        case global::DragEventKind.Alt:
            flag   = true;
            result = false;
            dropNotificationFlags  = global::DropNotificationFlags.AltDrop;
            dropNotificationFlags2 = global::DropNotificationFlags.AltLand;
            dropNotificationFlags3 = global::DropNotificationFlags.AltReverse;
            messageName            = "OnAltDrop";
            messageName2           = "OnAltLand";
            break;

        case global::DragEventKind.Mid:
            flag   = true;
            result = false;
            dropNotificationFlags  = global::DropNotificationFlags.MidDrop;
            dropNotificationFlags2 = global::DropNotificationFlags.MidLand;
            dropNotificationFlags3 = global::DropNotificationFlags.MidReverse;
            messageName            = "OnMidDrop";
            messageName2           = "OnMidLand";
            break;

        default:
            throw new ArgumentOutOfRangeException();
        }
        if ((flags & dropNotificationFlags3) == dropNotificationFlags3)
        {
            if ((flags & dropNotificationFlags2) == dropNotificationFlags2)
            {
                if (flag)
                {
                    global::DropNotification.Message(Pressed, Released, messageName2, Pressed, kind, ref result);
                }
                else
                {
                    global::DropNotification.Message(Pressed, messageName2, Pressed, kind, ref result);
                }
            }
            if ((flags & dropNotificationFlags) == dropNotificationFlags)
            {
                if (flag)
                {
                    global::DropNotification.Message(Released, Pressed, messageName, Pressed, kind, ref result);
                }
                else
                {
                    global::DropNotification.Message(Released, messageName, Pressed, kind, ref result);
                }
            }
        }
        else
        {
            if ((flags & dropNotificationFlags) == dropNotificationFlags)
            {
                if (flag)
                {
                    global::DropNotification.Message(Released, Pressed, messageName, Pressed, kind, ref result);
                }
                else
                {
                    global::DropNotification.Message(Released, messageName, Pressed, kind, ref result);
                }
            }
            if ((flags & dropNotificationFlags2) == dropNotificationFlags2)
            {
                if (flag)
                {
                    global::DropNotification.Message(Pressed, Released, messageName2, Pressed, kind, ref result);
                }
                else
                {
                    global::DropNotification.Message(Pressed, messageName2, Pressed, kind, ref result);
                }
            }
        }
        return(result);
    }