/// <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; }
protected AbstractScreen(ScreenManager mgr) { mScreenManager = mgr; Name = GetType().Name; IsActive = true; CurrentKeyboardState = new KeyboardState(); CurrentMouseState = new MouseState(); }