static int InitWithJson(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); MailInfo obj = (MailInfo)LuaScriptMgr.GetUnityObjectSelf(L, 1, "MailInfo"); JSONObject arg0 = (JSONObject)LuaScriptMgr.GetNetObject(L, 2, typeof(JSONObject)); obj.InitWithJson(arg0); return(0); }