public void HandleInput(float h, float v) { if (!(tickTimer >= tickTriggerAmount)) { return; } tickTimer -= tickTriggerAmount; var data = new InputNetworkData() { h = h, v = v }; HandleInput_AtServer(data); handleInput?.Invoke(data); }
private void HandleInput_AtServer(InputNetworkData data) { DebugLog.Warning($"[TestPlane] Received input horiz: {data.h}, vert: {data.v}"); inputQueue.Enqueue(data); }