Inspired by CS2D, I'm trying to learn to develop games in Unity. I'm still learning the basics of Unity and C#, trying to figure it out how to solve some problems. Various of then, I can find a solution in internet, but, I'm having problems to do my weapon audio to work.
My idea is a simple shooter game, possibly with a area closing (battle royale)
For now, I realize to do a player, configure some stats, create some weapon scripts to shoot (with raycast, ammo control and aim), but the sfx for automatic weapons is so hard to do.
I'm trying to use a single shot audio file (very short) with a tail audio. But the shoots sounds keeps varying with the FPS (140 - 300 fps)
How can I achieve a good weapon sfx with good performance (thinking that I'll have a lot of enemies in scene)?