static int set_onLongPress(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LongPressEventListener obj = (LongPressEventListener)o;
            LongPressEventListener.VoidDelegate arg0 = null;
            LuaTypes funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (LongPressEventListener.VoidDelegate)ToLua.CheckObject(L, 2, typeof(LongPressEventListener.VoidDelegate));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(LongPressEventListener.VoidDelegate), func) as LongPressEventListener.VoidDelegate;
            }

            obj.onLongPress = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onLongPress on a nil value" : e.Message));
        }
    }
 static int Get(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.GameObject));
         LongPressEventListener o    = LongPressEventListener.Get(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int OnPointerExit(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LongPressEventListener obj = (LongPressEventListener)ToLua.CheckObject(L, 1, typeof(LongPressEventListener));
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
         obj.OnPointerExit(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    public static LongPressEventListener Get(GameObject go)
    {
        LongPressEventListener listener = go.GetComponent <LongPressEventListener>();

        if (listener == null)
        {
            listener = go.AddComponent <LongPressEventListener>();
        }
        var g = go.GetComponent <Graphic>();

        if (g != null)
        {
            g.raycastTarget = true;
        }
        return(listener);
    }
    static int set_respondTime(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LongPressEventListener obj = (LongPressEventListener)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.respondTime = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index respondTime on a nil value" : e.Message));
        }
    }
    static int get_respondTime(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LongPressEventListener obj = (LongPressEventListener)o;
            float ret = obj.respondTime;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index respondTime on a nil value" : e.Message));
        }
    }
    static int get_onLongPress(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LongPressEventListener obj = (LongPressEventListener)o;
            LongPressEventListener.VoidDelegate ret = obj.onLongPress;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onLongPress on a nil value" : e.Message));
        }
    }