Exemplo n.º 1
0
 public void Update()
 {
     cooldown.Update();
     if (Keyboard.GetState().IsKeyDown(Keys.F1) && cooldown.IsOver())
     {
         editor.Pause();
         cooldown.Start();
     }
 }
Exemplo n.º 2
0
        public void Update()
        {
            cooldown.Update();
            var keyboard = Keyboard.GetState();

            if (keyboard.IsKeyDown(Keys.F2) && cooldown.IsOver())
            {
                cooldown.Start();
                world.RenderColliders = !world.RenderColliders;
            }
        }