public RayAttack(Vector2D position) : base(position) { gridStartPosition = new Vector2D(position.X, Level.Current.Size.Height); gridExitPosition = new Vector2D(position.X, 0.0f); timeToPassGrid = gridExitPosition.DistanceTo(gridStartPosition) / AuraCannonSpeed; AddChild(EffectLoader.GetAvatarSkillEffect(AvatarAttack.DragonAuraCannon)); Orientation = Quaternion.CreateLookAt(gridExitPosition, gridStartPosition, -Vector3D.UnitZ); }
public Fireball(Vector2D gridPosition) : base(Vector3D.Zero) { targetPosition = new Vector3D(gridPosition); startPosition = new Vector3D(Randomizer.Current.Get(-1.0f, 1.0f), Randomizer.Current.Get(-1.0f, 1.0f), 5.0f); Position = startPosition; AddChild(EffectLoader.GetAvatarSkillEffect(AvatarAttack.DragonBreathOfFire)); }