Esempio n. 1
0
    static int RecalculateMasking(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        MaskableGraphic obj = LuaScriptMgr.GetUnityObject <MaskableGraphic>(L, 1);

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

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

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