AI Command Lab // Flight Simulator
102F: The Tooltip Protocol
Initial AI Output (Fragile)
// AI-Generated Code: Ambiguous
public class Engine : MonoBehaviour {
// Audit Fail: Is this degrees C? F? A percentage?
// What happens if I set it to 5000?
public float heatLevel;
}
Initial AI Prompt
"You ask the AI: "Add a variable for engine heat.""
Pilot Comm Link
Mission Objective: Capstone Mission: Audit the AI output to ensure a high-performance, responsive UI layout.
Optimized Protocol
public class Engine : MonoBehaviour {
// Corrected: Self-documenting and safe
[Tooltip("Engine Temp in Celsius. Overheats at 100.")]
[Range(0f, 150f)] // Slider prevents accidental "5000" input
public float heatLevel;
}