Beispiel #1
0
 public Explosion(Vector2 position_, Vector2 velocity_, float size_, int damage_, Gun.Ammo type_)
 {
     position = position_;
     velocity = velocity_;
     radius   = size_ / 2;
     size     = new Vector2(size_ / AppMain.textures.explosion.sprites[0].size.x,
                            size_ / AppMain.textures.explosion.sprites[0].size.y);
     damage       = damage_;
     type         = type_;
     target_group = Game.instance.enemy_group;
 }
Beispiel #2
0
        public override void Dispose()
        {
            base.Dispose();

            target_group = null;
        }
Beispiel #3
0
 public virtual void Dispose()
 {
     parent = null;
 }