23 lines
749 B
Lua
23 lines
749 B
Lua
local Action_PlayerDead = {
|
||
DeadPlayerKey = 0;
|
||
KillerPlayerKey = 0;
|
||
}
|
||
|
||
-- 触发器激活时,将执行Action的Execute
|
||
function Action_PlayerDead:Execute(...)
|
||
-- 通知
|
||
UGCLogSystem.Log("[Action_PlayerDead:Execute] 玩家 %s 被 %s 击杀", tostring(self.DeadPlayerKey), tostring(self.KillerPlayerKey));
|
||
GameState.MiniGameManager:OnPlayerDead(self.DeadPlayerKey, self.KillerPlayerKey);
|
||
UGCEventSystem.SendEvent(EventTypes.PlayerDead, self.DeadPlayerKey, self.KillerPlayerKey);
|
||
return true;
|
||
end
|
||
|
||
--[[
|
||
-- 需要勾选Action的EnableTick,才会执行Update
|
||
-- 触发器激活后,将在每个tick执行Action的Update,直到self.bEnableActionTick为false
|
||
function Action_PlayerDead:Update(DeltaSeconds)
|
||
|
||
end
|
||
]]
|
||
|
||
return Action_PlayerDead |