34 lines
956 B
Lua
34 lines
956 B
Lua
|
local BuffActionBase = require('Script.Global.BuffSystem.BuffActionBase')
|
||
|
|
||
|
local BuffAction_ShowParticle = setmetatable(
|
||
|
{
|
||
|
-- Param ---------------------------
|
||
|
ParticleType = nil;
|
||
|
-- Param End -----------------------
|
||
|
|
||
|
|
||
|
|
||
|
},
|
||
|
{ __index = BuffActionBase, __metatable = BuffActionBase }
|
||
|
);
|
||
|
|
||
|
function BuffAction_ShowParticle:LuaDoAction()
|
||
|
BuffActionBase.LuaDoAction(self)
|
||
|
if UGCGameSystem.IsServer() then return true end
|
||
|
UGCLogSystem.Log("[BuffAction_ShowParticle_LuaDoAction]Params:%s, %s", self.ReplyPerSecond, self.WaitAddHealthTime)
|
||
|
if self.ParticleType then
|
||
|
self.Particle = ParticleConfig.AddParticleAttachPlayer(self:GetOwnerPawn(), self.ParticleType)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
function BuffAction_ShowParticle:LuaUndoAction()
|
||
|
BuffActionBase.LuaUndoAction(self)
|
||
|
if UGCGameSystem.IsServer() then return true end
|
||
|
ParticleConfig.DestroyParticle(self.Particle)
|
||
|
end
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
return BuffAction_ShowParticle;
|