I removed most of the hardcoded keypresses from the tankSteer and Radar scripts, replacing them with keybindings in the Input Action Asset. The most notable change is the zoom no long being keys 1-3 and instead being a single keybind of z. Pressing z cycles between the different levels, and the tankSteer had the hide radar button replaced as well.
This pull request also changes the PlayerInput on the tank to use BroadcastMessages rather than SendMessages as the radar is a child of the tank and wouldn't have gotten the input messages otherwise.
Everything is tested and working, though I did leave in the hardcoded scroll wheel adjusting the radar's zoom level for now. I figured it would be useful in debug situations.
I removed most of the hardcoded keypresses from the tankSteer and Radar scripts, replacing them with keybindings in the Input Action Asset. The most notable change is the zoom no long being keys 1-3 and instead being a single keybind of z. Pressing z cycles between the different levels, and the tankSteer had the hide radar button replaced as well. This pull request also changes the PlayerInput on the tank to use BroadcastMessages rather than SendMessages as the radar is a child of the tank and wouldn't have gotten the input messages otherwise. Everything is tested and working, though I did leave in the hardcoded scroll wheel adjusting the radar's zoom level for now. I figured it would be useful in debug situations.