-- 技能 - 事件相关 local SkillActionSystem = {} local FP=FP local pairs=pairs --[[ Tick --]] function SkillActionSystem.OnLogicUpdate(entity) local skillBaseComponent = entity.components.skillBase local curSkill = skillBaseComponent.CurSkillData if curSkill and skillBaseComponent.CurUpdateData then local passTime = skillBaseComponent.CurPassTime if passTime and passTime >= FP.Const.Zero then local lastPassTime = skillBaseComponent.CurLastPassTime for i,skillEvent in ipairs(curSkill.SkillEvent_Table) do if lastPassTime < skillEvent.EventTime and passTime >= skillEvent.EventTime then SystemManager.OnTriggerAction(entity, skillEvent ,curSkill) end end end end end return SkillActionSystem