protected override void OnCollide(Bullet obj)
 {
     if (obj.OfPlayer)
     {
         ExplosionEffect bomb = new ExplosionEffect(Position);
         Layer.AddObject(bomb);
         Dispose();
         obj.Dispose();
     }
 }
Пример #2
0
 protected override void OnCollide(Bullet obj)
 {
     if (!obj.OfPlayer)
     {
         ExplosionEffect bomb = new ExplosionEffect(Position);
         Layer.AddObject(bomb);
         Dispose();
         asd.Engine.ChangeSceneWithTransition(new GameOverScene("GAMEOVER"), new asd.TransitionFade(1.0f, 1.0f));
     }
 }