---@class WB_HeadingInfo_C:UUserWidget ---@field TextBlock_Kill UTextBlock ---@field TextBlock_Score UTextBlock --Edit Below-- ---@type WB_HeadingInfo_C local WB_HeadingInfo = { bInitDoOnce = false; }; function WB_HeadingInfo:Construct() self:LuaInit() end function WB_HeadingInfo:LuaInit() if self.bInitDoOnce then return; end self.bInitDoOnce = true; UGCEventSystem.AddListener(EventEnum.UpdatePlayerScoreData, self.UpdatePlayerScoreData, self) end function WB_HeadingInfo:UpdatePlayerScoreData() UGCLogSystem.LogTree("[WB_HeadingInfo_UpdatePlayerScoreData]", PlayerScoreSystem.GetPlayerScoreDatas()) local LocalPK = UGCSystemLibrary.GetLocalPlayerKey() self.TextBlock_Score:SetText(tostring(PlayerScoreSystem.GetPlayerScore(LocalPK))) self.TextBlock_Kill:SetText(tostring(PlayerScoreSystem.GetPlayerScoreDataFromType(LocalPK, PlayerScoreSystem.Config.EScoreType.Kills))) end return WB_HeadingInfo;