我有一个Avatar继承自的对象Microsoft.Xna.Framework.DrawableGameComponent
我尝试在Update我的Avatar. 但我没有找到任何方法来获取窗口的宽度和高度。
该方法GraphicsDeviceManager.DefaultBackBufferHeight到目前为止不起作用。
我的构造函数:
    public Avatar(Game game)
        : base(game)
    {
        // TODO: Construct any child components here
    }