I’m designing the general architecture of my game, using c#, and I’ve implemented a singleton pattern, which I hope will facilitate communication between some of my game objects.
My Question, if I add the same script to a bunch of GameObjects, and the script calls functions on the singleton, would the singleton need to be thread safe? That is, all the GameObjects would then have similar functionality, all calling the same function, the same variables in that function, would I need to use lock() (or something similar) when changing values in the singleton from the scripted GameObjects?