Quantcast
Viewing all articles
Browse latest Browse all 131

Non Monobehaviour GameManager?

Hi, most time I use Monobehaviour scripts, but now I want to create a GameManager which contains a lot of variables. I don't want to attach it to a GameObject, that means I can't use monobehaviour. The variables have to be accessed from every script in my project and the variables are changed at runtime, so I can't use GameManager g = new GameManager(); How can I create and get one instance of a non-monobehaviour script? Thanks for your help!

Viewing all articles
Browse latest Browse all 131

Trending Articles