/// <summary> ///广播技能目标列表 /// </summary> private void BroadCastSkillBeginTargets(IComponentEvent entityEvent) { BroadCastSkill_BeginTargets bctarges = entityEvent as BroadCastSkill_BeginTargets; m_PerceptronTarget.SetBroadCastTargets(bctarges.targets, bctarges.direction, true); BroadCastSkill_ReleaseSkill releaseSkill = new BroadCastSkill_ReleaseSkill(); releaseSkill.skillId = bctarges.skillId; SendEvent(ComponentEventName.BroadCastSkill_ReleaseSkill, releaseSkill); }
/// <summary> /// 处理吟唱和引导技能开始 /// </summary> private static void DisposeSkillSelectTargetInfoBroadcast(SkillSelectTargetInfoBroadcast result) { BaseEntity entity = GameplayManager.Instance.GetEntityManager().GetEntityById <BaseEntity>(result.CasterId); if (entity == null) { return; } BroadCastSkill_BeginTargets bctarges = new BroadCastSkill_BeginTargets(); uint skillid = result.SkillId; bctarges.skillId = (int)skillid; bctarges.targets = result.TargetList; bctarges.direction = result.TargetPosition; Leyoutech.Utility.DebugUtility.LogWarning("广播技能", string.Format("吟唱和引导技能开始 SkillId = {0}", skillid)); entity.SendEvent(ComponentEventName.BroadCastSkill_BeginTargets, bctarges); }