16 lines
374 B
Lua
16 lines
374 B
Lua
|
local UGCPlayerState = {
|
||
|
};
|
||
|
|
||
|
function UGCPlayerState:ReceiveBeginPlay()
|
||
|
self.SuperClass.ReceiveBeginPlay(self);
|
||
|
self.OnPlayerKillsChangeDelegate:Add(self.UpdateKills, self)
|
||
|
|
||
|
end
|
||
|
|
||
|
function UGCPlayerState:UpdateKills()
|
||
|
PlayerScoreSystem.SetPlayerScoreDataFromType(self.PlayerKey, PlayerScoreSystem.Config.EScoreType.Kills, self.Kills)
|
||
|
end
|
||
|
|
||
|
return UGCPlayerState;
|
||
|
|