static int _m_OnBecomeVisible(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); NpcPlayer __cl_gen_to_be_invoked = (NpcPlayer)translator.FastGetCSObj(L, 1); try { { bool bVisible = LuaAPI.lua_toboolean(L, 2); __cl_gen_to_be_invoked.OnBecomeVisible(bVisible); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }