private void shootLaser(Vector2 start, Vector2 end, bool hits, int damage) { var phaserShot = new PhaserShotAnimation(start, end, hits, damage); phaserShot.Start(); phaserShot.Delay = 10; phaserShot.AnimationStopped += new EventHandler <AnimationEventArgs>(this.phaserShot_AnimationStopped); AwayTeam.MissionController.MapContainer.AddChild(phaserShot); phaserShot.Play(); }
private void ShootLaser(Vector2 start, Vector2 end) { var phaserShot = new PhaserShotAnimation(start, end); phaserShot.Start(); phaserShot.Delay = 10; phaserShot.AnimationStopped += new EventHandler <AnimationEventArgs>(this.phaserShot_AnimationStopped); this.AddChild(phaserShot); phaserShot.Play(); }
private void ShootLaser(Vector2 start, Vector2 end) { var phaserShot = new PhaserShotAnimation(start, end); phaserShot.Start(); phaserShot.Delay = 10; phaserShot.AnimationStopped += new EventHandler<AnimationEventArgs>(this.phaserShot_AnimationStopped); this.AddChild(phaserShot); phaserShot.Play(); }
private void shootLaser(Vector2 start, Vector2 end, bool hits, int damage) { var phaserShot = new PhaserShotAnimation(start, end, hits, damage); phaserShot.Start(); phaserShot.Delay = 10; phaserShot.AnimationStopped += new EventHandler<AnimationEventArgs>(this.phaserShot_AnimationStopped); AwayTeam.MissionController.MapContainer.AddChild(phaserShot); phaserShot.Play(); }