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

        if (!flag)
        {
            System_Action_NotiData_Event target = new System_Action_NotiData_Event(func);
            System.Action <NotiData>     d      = target.Call;
            target.method = d.Method;
            return(d);
        }
        else
        {
            System_Action_NotiData_Event target = new System_Action_NotiData_Event(func, self);
            System.Action <NotiData>     d      = target.CallWithSelf;
            target.method = d.Method;
            return(d);
        }
    }
    public static Delegate System_Action_NotiData(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            System.Action<NotiData> fn = delegate(NotiData param0) { };
            return fn;
        }

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