AI Command Lab // Flight Simulator
304B: The Blackboard
Initial AI Output (Fragile)
// AI-Generated Code: Hard Coupling
class Vision {
public Attack attackScript; // Dependency
void Update() {
if (seePlayer) attackScript.SetTarget(player);
}
}
Initial AI Prompt
"You ask the AI: "Pass the target from the vision script to the attack script.""
Pilot Comm Link
Mission Objective: A skilled Navigator directs the AI to use a Blackboard.
Optimized Protocol
// Corrected: Shared Data
blackboard.Set("Target", player);
// The Attack Node just checks:
var target = blackboard.Get<Transform>("Target");