private void MonsterKilling() { Units triggerUnit = TriggerManager.GetTriggerUnit(); Units targetUnit = TriggerManager.GetTargetUnit(); if (triggerUnit && targetUnit && (targetUnit.CompareTag("Hero") || targetUnit.CompareTag("Player")) && triggerUnit.CompareTag("Monster")) { TeamType teamType = (TeamType)targetUnit.teamType; int unique_id = targetUnit.unique_id; string npc_id = targetUnit.npc_id; this.CheckRecords(teamType, unique_id, npc_id, string.Empty); this._allRecords[(int)teamType][unique_id].UpdateKillingMonsterData(); } SysMonsterMainVo monsterMainData = BaseDataMgr.instance.GetMonsterMainData(triggerUnit.npc_id); if (monsterMainData != null && monsterMainData.item_type == this._bossType) { TeamType teamType2 = (TeamType)targetUnit.teamType; AchieveData.UpdateEpicMonster(teamType2); } }