Best place for global variables

Hi,

I need to switch between my test and production server addresses on a pretty regular basis. The way I’m doing it now, I have that exposed as a variable in several different places. But it would be easier if I could change all of them by changing it once.

How do you usually set up variables like this, so you can easily change them?

PlayerPrefs, a plug-in with the numbers,… something else?

Thank you,
-Chilton

A static var might do it no?

Generally I like to place global variables in their own script.
eg: I might have a ManagerValues script which will hold (static read only) global variables, although that is still mainly a bad idea (Statics are bad mk?)

Static wins. That’s exactly what I wanted.

I’m going to start keeping a file of statics and use those.

Thanks guys!
-Chilton