Exemple #1
0
    static int SetPanel(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UIRect  obj  = (UIRect)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIRect");
        UIPanel arg0 = (UIPanel)LuaScriptMgr.GetUnityObject(L, 2, typeof(UIPanel));

        obj.SetPanel(arg0);
        return(0);
    }
    private static int SetPanel(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UIRect  uIRect = (UIRect)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIRect");
        UIPanel panel  = (UIPanel)LuaScriptMgr.GetUnityObject(L, 2, typeof(UIPanel));

        uIRect.SetPanel(panel);
        return(0);
    }
    public static int SetPanel(IntPtr l)
    {
        int result;

        try
        {
            UIRect  uIRect = (UIRect)LuaObject.checkSelf(l);
            UIPanel panel;
            LuaObject.checkType <UIPanel>(l, 2, out panel);
            uIRect.SetPanel(panel);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }