南城四人用新角色信息

master
罗家炜 2025-04-24 20:35:51 +08:00
parent 0b4308616f
commit 288a46eca3
1 changed files with 2 additions and 14 deletions

View File

@ -17,14 +17,7 @@ function M.new(view, mainView)
end end
function M:init() function M:init()
if self._main_view._room.room_config.people_num ~= 2 then
PlayerInfoView.init(self)
self._tex_score = self._view:GetChild("info"):GetChild("tex_score1")
self._tex_score2 = self._view:GetChild("info"):GetChild("tex_score2")
self._ct_score = self._view:GetChild("info"):GetController("score")
else
PlayerInfoView_copy.init(self) PlayerInfoView_copy.init(self)
end
end end
function M:ShowInteraction(type, str) function M:ShowInteraction(type, str)
@ -57,12 +50,7 @@ function M:UpdateRemainCard(card_num, hide)
end end
function M:FillData(player) function M:FillData(player)
if self._main_view._room.room_config.people_num == 2 then
PlayerInfoView_copy.FillData(self, player) PlayerInfoView_copy.FillData(self, player)
else
PlayerInfoView.FillData(self, player)
self:UpdateScore(player.total_score)
end
end end
function M:UpdateScore() function M:UpdateScore()