private void ViewLayer_KeyDownSec(object sender, KeyEventArgs e) // Нажатие на клившу нижним игроком { lock (this) { if (e.KeyCode == Keys.Right && !controller.DownPlayerSetDirection) { controller.TriggerDownPlayerToRight(); controller.DownPlayerSetDirection = true; } if (e.KeyCode == Keys.Left && !controller.DownPlayerSetDirection) { controller.TriggerDownPlayerToLeft(); controller.DownPlayerSetDirection = true; } } }