How do I turn all audio in my project off in game?

How would I turn all the sounds in my game off when a certain option is pressed?

There is one, and only one, AudioListener in the scene. Often it will be in your avatar (so sounds are relative to the avatar's position), or in the same object as your camera (so sounds are relative to the player's view). Find it, and set pause = true.

Camera.main.gameObject.GetComponent().enabled = false;