From 4067a705eea7c013a95837ab44ed1ba36d405a6d Mon Sep 17 00:00:00 2001 From: Danil Iarosh Date: Tue, 23 Jun 2026 15:51:52 +0300 Subject: [PATCH] Add F6 hotkey to simulate payment system impulse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - В метод ComSystem.Update добавлен опрос клавиши F6 через новую систему ввода Keyboard.current. - Данная обработка работает исключительно в Editor и Development билдах для безопасности. - При нажатии клавиши F6 вызывается AddPaymentImpulse с заданным количеством импульсов, пополняя баланс игрока. --- Assets/Scripts/Runtime/Hardware/Com/ComSystem.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Assets/Scripts/Runtime/Hardware/Com/ComSystem.cs b/Assets/Scripts/Runtime/Hardware/Com/ComSystem.cs index fc6ae37..e25cc6d 100644 --- a/Assets/Scripts/Runtime/Hardware/Com/ComSystem.cs +++ b/Assets/Scripts/Runtime/Hardware/Com/ComSystem.cs @@ -326,6 +326,17 @@ namespace DanroJump.Hardware.Com /// private void Update() { +#if UNITY_EDITOR || DEVELOPMENT_BUILD + if (Keyboard.current != null && Keyboard.current.f6Key.wasPressedThisFrame) + { + AddPaymentImpulse(simulatedPaymentImpulseCount); + LogDebug( + DebugLogChannel.ComCredits, + logCredits, + $"Simulated F6 keyboard payment impulse input accepted. impulses={simulatedPaymentImpulseCount} balance={credits}"); + } +#endif + while (mainThreadQueue.TryDequeue(out Action action)) { action?.Invoke();