UGCProjects/SoloKing/Script/Blueprint/UGCPlayerState.lua
2025-01-21 11:29:14 +08:00

27 lines
608 B
Lua

---@class UGCPlayerState_C:BP_UGCPlayerState_C
--Edit Below--
---@type UGCPlayerState_C
local UGCPlayerState = {};
UGCPlayerState.WeaponInfiniteType = 0;
--function UGCPlayerState:ReceiveBeginPlay()
-- self.SuperClass.ReceiveBeginPlay(self);
--end
--- 重置击杀数
function UGCPlayerState:ResetKillNum()
self.Kills = 0;
self.KillPlayerNum = 0;
DOREPONCE(self, "Kills")
DOREPONCE(self, "KillPlayerNum")
end
function UGCPlayerState:ResetGame()
self:ResetKillNum();
end
function UGCPlayerState:OnBestRank(Score)
self.UGCPlayerInfo.MatchRank = Score;
end
return UGCPlayerState;