Quantcast
Channel: Questions in topic: "class instance"
Viewing all articles
Browse latest Browse all 131

Non Monobehaviour GameManager?

$
0
0
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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>