public static int DestroyChildrenImmediate_s(IntPtr l)
    {
        int result;

        try
        {
            GameObject obj;
            LuaObject.checkType <GameObject>(l, 1, out obj);
            GameObjectUtility.DestroyChildrenImmediate(obj);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }