static int AttachEffect(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); GameObject arg0 = LuaScriptMgr.GetUnityObject <GameObject>(L, 1); GameObject arg1 = LuaScriptMgr.GetUnityObject <GameObject>(L, 2); string arg2 = LuaScriptMgr.GetLuaString(L, 3); bool o = UtilCommon.AttachEffect(arg0, arg1, arg2); LuaScriptMgr.Push(L, o); return(1); }