ro-table/Assets/Resources/Script/FrameWork/GUI/cell/MVPResultHeadCell.txt
2025-06-04 05:12:01 +08:00

21 lines
472 B
Plaintext

local baseCell = autoImport("BaseCell")
MVPResultHeadCell = class("MVPResultHeadCell", baseCell)
function MVPResultHeadCell:Init()
self:FindObjs()
end
function MVPResultHeadCell:FindObjs()
self.icon = self:FindGO("Icon"):GetComponent(UISprite)
end
function MVPResultHeadCell:SetData(data)
self.data = data
if data ~= nil then
local staticData = Table_Monster[data]
if staticData ~= nil then
IconManager:SetFaceIcon(staticData.Icon, self.icon)
end
end
end