/// <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; }
public HumbleGame() { graphics = new GraphicsDeviceManager(this); screenManager = ScreenManager.GetInstance(); Content.RootDirectory = "Content"; }