Exemple #1
0
    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();
    }
Exemple #2
0
    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();
    }
Exemple #3
0
 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();
 }