/// <summary> /// 被中断时的动作 /// </summary> public override void InterruptAction() { if (pl != null) { pl.BeginToDie(); pl = null; } }
/// <summary> /// 开始通道施放的动作 /// </summary> public override void StartChannellingAction() { ParticleLine k = pl; //pl = (ParticleLine)GameWorld.Content.Load<ParticleLine>(@"ParticleEffectTypes\ParticleLines\Railgun").Clone(); pl = (ParticleLine)GameWorld.Content.Load <ParticleLine>(EffectLine).Clone(); pl.Origin = MargedUnit.SkillPosition(SkillPointNum); pl.Direction = MargedUnit.Face; GameWorld.AddParticleShape(pl); }