local Base = require("Battle/Expression/ExpLevel/ExpLevelFunction/ExpSyncLevelFunction") local ExpSyncEscortLevelFunction = class("ExpSyncEscortLevelFunction",Base) local EventSystem = require('Event/EventSystem') function ExpSyncEscortLevelFunction:OnEntityDead(entity, recordComp) EventSystem.Dispatch(EventID.SyncEscort_ShowKillTitleInfo ,recordComp.KillerEntity._logicInitData.Name, recordComp.KillerEntity._logicInitData.CharacterID , entity._logicInitData.Name, entity._logicInitData.CharacterID,entity:GetCampID() == LevelPlayerManager.MainEntityCampID) end function ExpSyncEscortLevelFunction:OnPlayerAllHeroDead(entity) Base.OnPlayerAllHeroDead(self,entity) if entity._logicInitData.IsPlayerSelf then EventSystem.Dispatch(EventID.SyncEscort_OpenDeadPanel) end end return ExpSyncEscortLevelFunction