![]() On a sidenote, on what magic do static classes work? I did some experimenting by building the menu system pages as individual script files. Or am I misunderstanding how the keyword "static" works? How does it exist and run within the program without being in a scene? What do I do to make it load when I hit play?Īlso why is this gameManager not static? How will it work if it needs to present everywhere and accessible by everything? This is where I get most confused about this: If I don't need to attach the gameManager to a script, then how do I know its running? I want to have a check on startup, that a user can toggle to show or disable the intro at the beginning, but I'm not sure how to do the singleton pattern is something I've been reading about lately and most articles that talk about a game manager have something to do with a singleton pattern. I'm very curious, with this system you have, does it remember settings or previous game progress when turning on/off the application? Very useful, especially for managing the menu system I've come up with. Just read the manual page for PlayerPrefs and this sounds interesting, but how do I use it?Īnd what exactly can I store in it? Is it limited to only storing some preset values or how does it work?Īs for what I'm doing, its a standard commercial grade single player game.
0 Comments
Leave a Reply. |