private void Fire() { smallBullet bullet = new smallBullet(position, rotation + directions[2], 10, 10); bulletList.Add(bullet); shootTimer = 0.0f; }
private void FireThree() { foreach (float direction in directions) { smallBullet bullet = new smallBullet(position, rotation + direction, 10, 10); bulletList.Add(bullet); } shootTimer = 0.0f; }
private void FireTwo() { for (int i = 0; i < directions.Length - 1; i++) { smallBullet bullet = new smallBullet(position, rotation + directions[i], 10, 10); bulletList.Add(bullet); } shootTimer = 0.0f; }
private void Fire() { if (shootTimer > 1.0f) { smallBullet bullet = new smallBullet(position, rotation - (float)Math.PI / 2, 10, 10); bulletList.Add(bullet); shootTimer = 0.0f; } }
private void FireBullets() { if (shootTimer > 1.0f) { foreach (float direction in directions) { smallBullet bullet = new smallBullet(position, 150, rotation - direction, 10, 10); bulletList.Add(bullet); } shootTimer = 0.0f; } }