static int PlayEffect(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); GNewTableBase obj = (GNewTableBase)LuaScriptMgr.GetUnityObjectSelf(L, 1, "GNewTableBase"); obj.PlayEffect(); return(0); }
static int EnableScroll(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); GNewTableBase obj = (GNewTableBase)LuaScriptMgr.GetUnityObjectSelf(L, 1, "GNewTableBase"); bool arg0 = LuaScriptMgr.GetBoolean(L, 2); obj.EnableScroll(arg0); return(0); }
static int SetItemCount(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); GNewTableBase obj = (GNewTableBase)LuaScriptMgr.GetUnityObjectSelf(L, 1, "GNewTableBase"); int arg0 = (int)LuaScriptMgr.GetNumber(L, 2); obj.SetItemCount(arg0); return(0); }
static int GetItem(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); GNewTableBase obj = (GNewTableBase)LuaScriptMgr.GetUnityObjectSelf(L, 1, "GNewTableBase"); int arg0 = (int)LuaScriptMgr.GetNumber(L, 2); GameObject o = obj.GetItem(arg0); LuaScriptMgr.Push(L, o); return(1); }
static int get_ItemCount(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); GNewTableBase obj = (GNewTableBase)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name ItemCount"); } else { LuaDLL.luaL_error(L, "attempt to index ItemCount on a nil value"); } } LuaScriptMgr.Push(L, obj.ItemCount); return(1); }