南城四人用新角色信息
parent
0b4308616f
commit
288a46eca3
|
|
@ -17,15 +17,8 @@ function M.new(view, mainView)
|
|||
end
|
||||
|
||||
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)
|
||||
end
|
||||
end
|
||||
|
||||
function M:ShowInteraction(type, str)
|
||||
if type == 3 then
|
||||
|
|
@ -57,12 +50,7 @@ function M:UpdateRemainCard(card_num, hide)
|
|||
end
|
||||
|
||||
function M:FillData(player)
|
||||
if self._main_view._room.room_config.people_num == 2 then
|
||||
PlayerInfoView_copy.FillData(self, player)
|
||||
else
|
||||
PlayerInfoView.FillData(self, player)
|
||||
self:UpdateScore(player.total_score)
|
||||
end
|
||||
end
|
||||
|
||||
function M:UpdateScore()
|
||||
|
|
|
|||
Loading…
Reference in New Issue