Beginner Space Shooter: Audio

Well it seems to work fine

Add sound to player
Call it from code

But why would I want to do that if I can
Add sound to bolt
Play it when spawned

This would give me the added advantage to have different kind of bolts each with their own sound and no coding, or am I wrong?

There’s nothing wrong with adding a sound effect to the bolt and playing it when spawned. For the character, it depends on what you want to achieve. If you want to add variations to a triggered sound effect like swinging a sword, you can do that by making an audioclip array and calling a random sound effect from the array when the action is done, You could also do this with your bolt if you want to have a variety of sound effects to play when it is spawned, like this.

    public AudioClip [] audioClips;
 
    void Start () {
   
        audio.clip = audioClips[Random.Range (0,audioClips.Length)];
        audio.Play ();
    }