21 lines
625 B
Lua
21 lines
625 B
Lua
local Action_PlayerRespawn = {
|
||
PlayerKey = 0,
|
||
}
|
||
|
||
-- 触发器激活时,将执行Action的Execute
|
||
function Action_PlayerRespawn:Execute(...)
|
||
UGCLogSystem.Log("[Action_PlayerRespawn:Execute] 玩家 %s 重生", tostring(self.PlayerKey));
|
||
UGCEventSystem.SendEvent(EventTypes.PlayerRespawn, self.PlayerKey);
|
||
MiniGameManager:OnPlayerRespawn(self.PlayerKey);
|
||
return true
|
||
end
|
||
|
||
--[[
|
||
-- 需要勾选Action的EnableTick,才会执行Update
|
||
-- 触发器激活后,将在每个tick执行Action的Update,直到self.bEnableActionTick为false
|
||
function Action_PlayerRespawn:Update(DeltaSeconds)
|
||
|
||
end
|
||
]]
|
||
|
||
return Action_PlayerRespawn |