示例#1
0
文件: Camera.cs 项目: jmaley/colonies
        public Camera()
        {
            inputManager = InputManager.GetInstance();

            frustum = new BoundingFrustum(view * projection);

            UpdateProjection();
        }
示例#2
0
        /// <summary>
        /// Creates a new screen manager.
        /// </summary>
        public ScreenManager(GraphicsDeviceManager graphicsDeviceManager)
        {
            this.graphicsDeviceManager = graphicsDeviceManager;

            inputManager = InputManager.GetInstance();
        }
示例#3
0
文件: Widget.cs 项目: jmaley/colonies
 /// <summary>
 /// Creates a generic widget.
 /// </summary>
 public Widget(SpriteBatch spriteBatch)
 {
     this.spriteBatch = spriteBatch;
     this.inputManager = InputManager.GetInstance();
 }
示例#4
0
 /// <summary>
 /// Returns the unique instance of the input manager.
 /// </summary>
 public static InputManager GetInstance()
 {
     return instance == null ? instance = new InputManager() : instance;
 }