public void Update() { cooldown.Update(); if (Keyboard.GetState().IsKeyDown(Keys.F1) && cooldown.IsOver()) { editor.Pause(); cooldown.Start(); } }
public void Update() { cooldown.Update(); var keyboard = Keyboard.GetState(); if (keyboard.IsKeyDown(Keys.F2) && cooldown.IsOver()) { cooldown.Start(); world.RenderColliders = !world.RenderColliders; } }