static int _m_AddButtonListener(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); { System.Action __cb = translator.GetDelegate <System.Action>(L, 2); gen_to_be_invoked.AddButtonListener(__cb); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }