Example #1
0
    public System.Action <int> System_Action_int(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            System.Action <int> fn = delegate(int param0) { };
            return(fn);
        }

        if (!flag)
        {
            System_Action_int_Event target = new System_Action_int_Event(func);
            System.Action <int>     d      = target.Call;
            target.method = d.Method;
            return(d);
        }
        else
        {
            System_Action_int_Event target = new System_Action_int_Event(func, self);
            System.Action <int>     d      = target.CallWithSelf;
            target.method = d.Method;
            return(d);
        }
    }
Example #2
0
    public static Delegate System_Action_int(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            System.Action<int> fn = delegate(int param0) { };
            return fn;
        }

        if(!flag)
        {
            System_Action_int_Event target = new System_Action_int_Event(func);
            System.Action<int> d = target.Call;
            target.method = d.Method;
            return d;
        }
        else
        {
            System_Action_int_Event target = new System_Action_int_Event(func, self);
            System.Action<int> d = target.CallWithSelf;
            target.method = d.Method;
            return d;
        }
    }