Ejemplo n.º 1
0
        protected override void OnActivated(object sender, EventArgs args)
        {
            settings       = GameSettingsManager.Load();
            spriteLocation = settings.Location;
            spriteVelocity = settings.Velocity;

            base.OnActivated(sender, args);
        }
Ejemplo n.º 2
0
        protected override void OnDeactivated(object sender, EventArgs args)
        {
            settings.Paused   = true;
            settings.Location = spriteLocation;
            settings.Velocity = spriteVelocity;

            GameSettingsManager.Save(settings);

            base.OnDeactivated(sender, args);
        }