public void Shoot(Player player) { if (R - L == 0) { return; } xp = ((int)player.x - x + 3) / 6; if (xp < 0 || xp > 10) { return; } proj.Shoot(5 + x + xp * 6 + 2, y + Active[xp] * 5 + 4, 1); }
public void Shoot() { proj.Shoot((int)x + 8, 67, -1); }
public void Shoot(Player player) { if (R - L == 0) { return; } xp = ((int)player.x - x + 3) / 6; if (xp < 0 || xp > 10) { return; } proj.Shoot(5 + x + xp * 6 + 2, y + Active[xp] * 5 + 4, 1); }
public void Shoot() { proj.Shoot((int)x + 8, 67, -1); }