/// <summary>
        /// Initializes the internal state of the component
        /// </summary>
        public override void Initialize()
        {
            camera = (ICameraService)this.Game.Services.GetService(typeof(ICameraService));
            inputManager = (IInputManagerService)this.Game.Services.GetService(typeof(IInputManagerService));

            base.Initialize();
        }
 public override void Initialize()
 {
     inputManager = (IInputManagerService)Game.Services.GetService(typeof(IInputManagerService));
     base.Initialize();
 }
 public override void Initialize()
 {
     this.Color = Microsoft.Xna.Framework.Graphics.Color.White;
     this.inputManager = (IInputManagerService)Game.Services.GetService(typeof(IInputManagerService));
     this.mouse = inputManager.BetterMouse;
     base.Initialize();
 }
Exemple #4
0
 public override void Initialize()
 {
     // TODO: Add your initialization code here
     inputManagerService = (IInputManagerService)this.Game.Services.GetService(typeof(IInputManagerService));
 }
        /// <summary>
        /// Initializes the internal state of the camera
        /// </summary>
        public override void Initialize()
        {
            position = Vector2.Zero;
            viewMatrix = Matrix.Identity;

            inputManager = (IInputManagerService)this.Game.Services.GetService(typeof(IInputManagerService));
            resolutionService = (IScreenResolutionService)this.Game.Services.GetService(typeof(IScreenResolutionService));
            if(this.visibleArea == null)
                this.visibleArea = new RectangleF2();

            base.Initialize();
        }