public LancadorMisseis(GameCore game, Texture2D imgInimigo, int hp, int velocidadeInimigo, int largura, ScreenGamePlay screen, int score)
     : base(game, imgInimigo, hp, velocidadeInimigo, largura, score)
 {
     positionInimigo = new Vector2(rnd.Next(mygame.Window.ClientBounds.Width), 0);
     this.screen     = screen;
     imgTiro         = mygame.Content.Load <Texture2D>("missel");
     life            = mygame.Content.Load <Texture2D>("life");
     this.score      = score;
 }
 public Player(GameCore game, Texture2D imgPlayer, Vector2 positionPlayer, int vida, int hp, int velocidadePlayer, ScreenGamePlay screen)
     : base(game, imgPlayer)
 {
     this.positionPlayer   = positionPlayer;
     this.imgPlayer        = imgPlayer;
     this.vida             = vida;
     this.hp               = hp;
     this.velocidadePlayer = velocidadePlayer;
     this.screen           = screen;
 }
 public Tiro(GameCore game, Texture2D image, Vector2 posicao, int velocidade, int dano, ScreenGamePlay screen)
     : base(game, image)
 {
     this.image      = image;
     this.posicao    = posicao;
     this.velocidade = velocidade;
     this.dano       = dano;
     this.screen     = screen;
     mygame.sons.playSound(2);
 }
 // Start is called before the first frame update
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
 }
 public TiroInimigo(GameCore game, Texture2D image, Vector2 posicao, int velocidade, int dano, int largura, ScreenGamePlay screen)
     : base(game, image)
 {
     this.image      = image;
     this.posicao    = posicao;
     this.velocidade = velocidade;
     this.dano       = dano;
     this.screen     = screen;
     this.largura    = largura;
     this.altura     = image.Height;
     mygame.sons.playSound(2);
 }