コード例 #1
0
    public static int IsDescendantOrSelf_s(IntPtr l)
    {
        int result;

        try
        {
            Transform father;
            LuaObject.checkType <Transform>(l, 1, out father);
            Transform child;
            LuaObject.checkType <Transform>(l, 2, out child);
            bool b = MaskUtilities.IsDescendantOrSelf(father, child);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }