Reproduction steps:
1. Open the attached “IN-93048” project
2. Open the “Scenes/SampleScene” Scene
3. Open the Multiplayer Play Mode window (Window > Multiplayer > Multiplayer Play Mode)
4. Enable the “Player 2” player
5. Enter the Play Mode
6. Select the “NetworkManager” GameObject in the Hierarchy window
7. Press the “Start Server” button under “Network Manager” component in the Inspector window
8. Select the “NetworkManager” GameObject in the “Player 2” Hierarchy window
9. Press the “Start Client” button under “Network Manager” component in the ““Player 2” Inspector window
10. Press the “Space” key in the Game View multiple times
11. Observe the “Player 2” Console window
Expected result: Previous value is set to previous value
Actual result: Previous value is always set to 0
Reproducible with: 1.12.0, 1.12.2, 2.2.0 (6000.0.39f1, 6000.1.0b7, 6000.2.0a4)
Not reproducible with: 1.9.1, 1.11.0 (6000.0.39f1, 6000.1.0b7, 6000.2.0a4)
Couldn’t test with: 2022.3.58f1 - No support for the “Multiplayer Play Mode” package
Reproducible on: Windows 10, Windows 11 (user)
Not reproducible on: No other environments tested