// Aciona o tiro padrão public override void acionatiro() { Tiro arma1 = new Tiro(Game, 1, this, 1); arma1.setBatch(getBatch()); getGame().Components.Add(arma1); }
public void tiro() { List <Nave> naves = recuperaComponentesNave(); foreach (Nave nave in naves) { if (!(nave is attackshiperShip)) { Tiro arma1 = new Tiro(Game, 1, nave, 1); getGame().Components.Add(arma1); } } }