Hi,
I was hoping someone could explain some things about singletons and don’t destroy.
I have seen tutorials for sound managers that have
If(instance =null) {instance=this}
else {destroygameobject(this)}
Why would there be more than one sound manager in a game? If you create it during a “preload scene” and then added don’t destroy. Won’t you always have one instance anyway? I feel like I’m missing something.
Also, if I loaded all my scenes at the start (smoother transitions in game between scenes), would there be no use of a singleton?
Thank you, any clarification at all would be wonderful
Sorry for the wrong topic, I won’t let my put any other topic in for some reason