28 lines
689 B
Lua
28 lines
689 B
Lua
|
---@class UGCGameMode_C:BP_UGCGameBase_C
|
||
|
--Edit Below--
|
||
|
---@type UGCGameMode_C
|
||
|
UGCGameSystem.UGCRequire('Script.Global.Global')
|
||
|
|
||
|
local UGCGameMode = {
|
||
|
};
|
||
|
function UGCGameMode:ReceiveBeginPlay()
|
||
|
self.SuperClass.ReceiveBeginPlay(self);
|
||
|
--- 启用滑铲
|
||
|
self.bIsOpenShovelingAbility = true
|
||
|
end
|
||
|
|
||
|
function UGCGameMode:ReceiveTick(DeltaTime)
|
||
|
self.SuperClass.ReceiveTick(self, DeltaTime);
|
||
|
end
|
||
|
|
||
|
function UGCGameMode:ReceiveEndPlay()
|
||
|
self.SuperClass.ReceiveEndPlay(self);
|
||
|
end
|
||
|
|
||
|
|
||
|
function UGCGameMode:Server_RespawnPlayer(RespawnPlayerKey)
|
||
|
UGCGameSystem.GetRespawnComponent():AddRespawnPlayer(RespawnPlayerKey, GlobalConfigs.GameSetting.RespawnTime)
|
||
|
end
|
||
|
|
||
|
|
||
|
return UGCGameMode;
|