コード例 #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();
    }
コード例 #2
0
ファイル: MissionPage.cs プロジェクト: hunktop/awayteam
    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();
    }
コード例 #3
0
ファイル: MissionPage.cs プロジェクト: HaKDMoDz/awayteam
 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();
 }
コード例 #4
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();
 }