Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class F84Globals
- {
- private static F84Globals instance;
- public F84Globals()
- {
- if (instance != null)
- {
- Debug.LogError("Cannot have two instances of F84Globals. Aborting.");
- return;
- }
- instance = this;
- }
- public static F84Globals Instance
- {
- get
- {
- if (instance == null)
- {
- new F84Globals();
- }
- return instance;
- }
- }
- Stats GlobalStats;
- Stats SessionStats;
- // show the level selection stuff
- bool bShowTitle = true;
- public bool ShowTitle
- {
- get
- {
- return instance.bShowTitle;
- }
- set
- {
- instance.bShowTitle = value;
- }
- }
- // handle win related stuff
- public void Win()
- {
- bShowTitle = false;
- Application.LoadLevel("Start Screen");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement