Reactor.RCameraComponent.Initialize C# (CSharp) Method

Initialize() public method

Initializes the CameraComponent class. This method repositions the mouse to the center of the game window.
public Initialize ( ) : void
return void
        public override void Initialize()
        {
            base.Initialize();

            Rectangle clientBounds = Game.Window.ClientBounds;
            Mouse.SetPosition(clientBounds.Width / 2, clientBounds.Height / 2);
            REngine.Instance._camera = camera;
        }