static int _m_UpdateExternalTexture(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Texture2D __cl_gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1); try { { System.IntPtr nativeTex = LuaAPI.lua_touserdata(L, 2); __cl_gen_to_be_invoked.UpdateExternalTexture(nativeTex); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }