AI Command Lab // Flight Simulator
205E: The Device Switch
Initial AI Output (Fragile)
// AI-Generated Code: Confusing UI text.text = "Press Space to Jump"; // Audit Fail: The player is holding a PlayStation controller. // "Space" means nothing to them.
Initial AI Prompt
"You ask the AI: "Show a tutorial prompt.""
Pilot Comm Link
Mission Objective: A skilled Pilot directs the AI to listen for changes. You command: "Subscribe to OnControlsChanged and update the UI icons based on playerInput.currentControlScheme."
Optimized Protocol
// Corrected: Context Aware
void OnControlsChanged(PlayerInput input) {
if (input.currentControlScheme == "Gamepad") ShowButtonIcon();
else ShowKeyIcon();
}