Example #1
0
		/// <exception cref="Exception">Singleton class; use ScreenManager.Instance instead</exception>
		public ScreenManager(Game game)
			: base(game) {
			if (mInstance != null) {
				throw new Exception("Singleton class; use ScreenManager.Instance instead");
			}
			mInstance = this;

			mIsInitialized = false;
			mContentLoaded = false;
		}
Example #2
0
		protected AbstractScreen(ScreenManager mgr) {
			mScreenManager = mgr;
			Name = GetType().Name;

			IsActive = true;
			CurrentKeyboardState = new KeyboardState();
			CurrentMouseState = new MouseState();
		}