Esempio n. 1
0
        public void Shoot()
        {
            bullet newBullet = new bullet(playerPosition);

            newBullet.isVisible = true;

            if (bullets.Count < 10)
            {
                bullets.Add(newBullet);
            }
        }
Esempio n. 2
0
        public void Shoot()
        {
            bullet newBullet = new bullet(player.playerRec);

            newBullet.isVisible = true;
            shot_sound.Play();

            if (bullets.Count < 10)
            {
                bullets.Add(newBullet);
            }
        }