Ejemplo n.º 1
0
        public Game1()
            : base()
        {
            graphics = new GraphicsDeviceManager(this);
            this.graphics.PreparingDeviceSettings += this.GraphicsDevicePreparingDeviceSettings;

            Content.RootDirectory = "Content";

            this.Window.Title = "Avatar-Kinect [TEST]";

            // COMPONENTS
            this.kinectAvatar = new KinectSkinnedModelAnimation(this);
            this.Components.Add(this.kinectAvatar);

            fps = new fpsCounter();

            this.graphics.SynchronizeWithVerticalRetrace = false;
            this.graphics.ApplyChanges();
            //this.IsFixedTimeStep = false;

            label1 = new Label(this, new Vector2(5.0f, 5.0f));
            this.Components.Add(this.label1);
        }
Ejemplo n.º 2
0
 void Awake()
 {
     _fpsCounter = GetComponent <fpsCounter>();
 }