diff --git a/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua b/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua index 13ac9c94..cf82f503 100644 --- a/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua +++ b/lua_probject/extend_project/extend/majiang/lichuan/EXGameController.lua @@ -169,10 +169,12 @@ function M:OnEventSendCards(evt_data) end function M:OnEventOutCard(evt_data) + print("lingmeng OnEventOutCard") local seat = evt_data["seat"] local card = evt_data["card"] local ting_list = nil local p = self._room:GetPlayerBySeat(seat) + print("lingmeng OnEventOutCard1", #self._cacheEvent) self._cacheEvent:Enqueue(function() local _room = self._room _room.last_outcard_seat = seat @@ -187,9 +189,11 @@ function M:OnEventOutCard(evt_data) p.hand_left_count = p.hand_left_count - 1 if not p.outcard_list then p.outcard_list = {} end p.outcard_list[#p.outcard_list + 1] = card + print("lingmeng OnEventOutCard2") DispatchEvent(self._dispatcher, TX_GameEvent.OutCard, p, card) end end) + print("lingmeng OnEventOutCard1-2", #self._cacheEvent) end function M:OnEventTakeCard(evt_data) diff --git a/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua b/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua index 8bb06723..e5644caa 100644 --- a/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua +++ b/lua_probject/extend_project/extend/majiang/lichuan/EXWitnessView.lua @@ -52,6 +52,7 @@ end function M:EventInit() -- UIPackage.AddPackage("extend/majiang/hongzhong/ui/Extend_MJ_HongZhong") + print("lingmeng EventInit") MainView.EventInit(self) local _room = self._room local _view = self._view