/// <summary> /// 初始化角色身上的触发型被动技能的回调 /// </summary> /// <param name="self">Self.</param> /// <param name="enemy">Enemy.</param> public void InitTriggeredPassiveSkillCallBacks(BattleAgentController self, BattleAgentController enemy) { self.ClearAllSkillCallBacks(); for (int i = 0; i < self.agent.attachedTriggeredSkills.Count; i++) { Skill skill = self.agent.attachedTriggeredSkills [i]; skill.AffectAgents(self, enemy); } }