Exemple #1
0
    static int RecalculateClipping(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        MaskableGraphic obj = LuaScriptMgr.GetUnityObject <MaskableGraphic>(L, 1);

        obj.RecalculateClipping();
        return(0);
    }
    public static int RecalculateClipping(IntPtr l)
    {
        int result;

        try
        {
            MaskableGraphic maskableGraphic = (MaskableGraphic)LuaObject.checkSelf(l);
            maskableGraphic.RecalculateClipping();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    private static int RecalculateClipping(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 1);
            MaskableGraphic maskableGraphic = (MaskableGraphic)ToLua.CheckObject(L, 1, typeof(MaskableGraphic));
            maskableGraphic.RecalculateClipping();
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }