Esempio n. 1
0
 /// <summary>
 /// Returns the sole instance of the screen manager.
 /// The singleton property may be used alternatively
 /// </summary>
 /// <returns>The screen manager</returns>
 public static ScreenManager GetInstance()
 {
     if (singleton == null)
         singleton = new ScreenManager();
     return singleton;
 }
Esempio n. 2
0
 public HumbleGame()
 {
     graphics = new GraphicsDeviceManager(this);
     screenManager = ScreenManager.GetInstance();
     Content.RootDirectory = "Content";
 }