public void Shoot() { bullet newBullet = new bullet(playerPosition); newBullet.isVisible = true; if (bullets.Count < 10) { bullets.Add(newBullet); } }
public void Shoot() { bullet newBullet = new bullet(player.playerRec); newBullet.isVisible = true; shot_sound.Play(); if (bullets.Count < 10) { bullets.Add(newBullet); } }