public Camera() { inputManager = InputManager.GetInstance(); frustum = new BoundingFrustum(view * projection); UpdateProjection(); }
/// <summary> /// Creates a new screen manager. /// </summary> public ScreenManager(GraphicsDeviceManager graphicsDeviceManager) { this.graphicsDeviceManager = graphicsDeviceManager; inputManager = InputManager.GetInstance(); }
/// <summary> /// Creates a generic widget. /// </summary> public Widget(SpriteBatch spriteBatch) { this.spriteBatch = spriteBatch; this.inputManager = InputManager.GetInstance(); }
/// <summary> /// Returns the unique instance of the input manager. /// </summary> public static InputManager GetInstance() { return instance == null ? instance = new InputManager() : instance; }